POST
/
auth
/
credentials
curl --request POST \
  --url https://api.loccus.ai/v1/auth/credentials \
  --header 'Content-Type: application/json' \
  --data '{
  "handle": "user-a",
  "password": "pass1234"
}'
{
  "token": "eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1c2VyLWEifQ.Enz9YR7aZ9fulmBm9qVP7hA",
  "issuedAt": "2023-01-01T00:00:00.000000Z",
  "expiresAt": "2023-01-02T00:00:00.000000Z"
}

To learn how to use the token of a session to authenticate your API requests, read the bearer tokens page.

Body

application/json
handle
string
required

The handle of your user.

password
string
required

The password of your user.

Response

200 - application/json
token
string
required

The Base64-encoded bearer token of the session. Is unique.

issuedAt
string
required

The date and time when the session was issued.

expiresAt
string
required

The date and time when the session expires.