---
title: "Create Account Session"
method: POST
path: "/account/sessions"
tags: ["account"]
---

# Create Account Session

`POST /account/sessions`

Allow the user to login into their account by providing a valid email and password combination. This route will create a new session for the user.

## Request body

- object
  - `email` string, required — User email.
  - `password` string, required — User password. Must be between 6 to 32 chars.

## Response `201`

Session

- Session — Session
  - `$id` string, required — Session ID.
  - `clientCode` string, required — Client code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/clients.json).
  - `clientEngine` string, required — Client engine name.
  - `clientEngineVersion` string, required — Client engine name.
  - `clientName` string, required — Client name.
  - `clientType` string, required — Client type.
  - `clientVersion` string, required — Client version.
  - `countryCode` string, required — Country two-character ISO 3166-1 alpha code.
  - `countryName` string, required — Country name.
  - `current` boolean, required — Returns true if this the current user session.
  - `deviceBrand` string, required — Device brand name.
  - `deviceModel` string, required — Device model name.
  - `deviceName` string, required — Device name.
  - `expire` integer, required — Session expiration date in Unix timestamp.
  - `ip` string, required — IP in use when the session was created.
  - `osCode` string, required — Operating system code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/os.json).
  - `osName` string, required — Operating system name.
  - `osVersion` string, required — Operating system version.
  - `provider` string, required — Session Provider.
  - `providerToken` string, required — Session Provider Token.
  - `providerUid` string, required — Session Provider User ID.
  - `userId` string, required — User ID.

---

[API](https://skmtc.net/appwrite/apis/client.md) · [All operations](https://skmtc.net/appwrite/apis/client/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/appwrite/client/versions/b1c00a0bc3fb/schema)
