Create Session
POST/sessions
Create a new session.
Request Body
| Field | Type | Description | 
|---|---|---|
| identifier | String | The session user’s identifier. This can be either their email or username. | 
| password | String | The session user’s password. | 
| platform | String | The session’s platform (linux, windows, mac, etc.) | 
| client | String | The client the session was created by. | 
Response
| Field | Type | Description | 
|---|---|---|
| token | String | The session’s token. This can be used by the user to properly interface with the API. | 
| session | Session | The session object that was created. | 
Example
curl \
  --json '{
  "identifier": "yendri",
  "password": "authentícame por favor",
  "platform": "linux",
  "client": "pilfer"
}' \
  https://api.eludris.gay/sessions
{
  "token": "<token>",
  "session": {
    "id": 2472278163458,
    "user_id": 48615849987333,
    "platform": "linux",
    "client": "pilfer",
    "ip": "fc00:e10d:7150:b1gb:00b5:f00d:babe:1337"
  }
}