# social.dept.createSession

> Start a Social Dept. session for the account that signed the service auth token sent as the bearer credential. The token's lxm must be this method.

- Kind: procedure
- Authority: dept.social
- Lexicon: 1
- Published by [socialde.pt](https://lexicon.garden/identity/did:plc:ngpq4mefyctd3qkclic7jtv3), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:ngpq4mefyctd3qkclic7jtv3/social.dept.createSession)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:ngpq4mefyctd3qkclic7jtv3/social.dept.createSession/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:ngpq4mefyctd3qkclic7jtv3/social.dept.createSession/analytics)

## Procedure (`social.dept.createSession`)

Type: procedure · POST

### Output (application/json)

- `did` (string · did, required)
- `handle` (string · handle)

### Errors

- `BadJwtIss`: The token was signed by a service, not an account.
- `AccountBanned`: This account cannot sign in here.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Start a Social Dept. session for the account that signed the service auth token sent as the bearer credential. The token's lxm must be this method.",
      "errors": [
        {
          "description": "The token was signed by a service, not an account.",
          "name": "BadJwtIss"
        },
        {
          "description": "This account cannot sign in here.",
          "name": "AccountBanned"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "did": {
              "format": "did",
              "type": "string"
            },
            "handle": {
              "format": "handle",
              "type": "string"
            }
          },
          "required": [
            "did"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "social.dept.createSession",
  "lexicon": 1
}
```
