>>

Create Session

POST/sessions

Create a new session.

>>

Request Body

FieldTypeDescription
identifierStringThe session user’s identifier. This can be either their email or username.
passwordStringThe session user’s password.
platformStringThe session’s platform (linux, windows, mac, etc.)
clientStringThe client the session was created by.
>>

Response

200SessionCreated

FieldTypeDescription
tokenStringThe session’s token. This can be used by the user to properly interface with the API.
sessionSessionThe 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"
  }
}