Skip to main content
POST
/
auth
/
v1
/
rs
/
login
/
credentials
LoginCredentials in the organization context and return tokens
curl --request POST \
  --url https://z52mnqg347.execute-api.eu-west-3.amazonaws.com/main/auth/v1/rs/login/credentials \
  --header 'Authorization: Bearer <token>' \
  --header 'content-type: <content-type>' \
  --data '
{
  "email": "test@mail.com",
  "password": "StrongP@ssw0rd"
}
'
{
  "data": {
    "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
    "refreshToken": "dGhpcy1pcz1hLXJlZnJlc2gtdG9rZW4tZXhhbXBsZQ...",
    "sessionToken": "c2Vzc2lvbi10b2tlbi1leGFtcGxlLXN0cmluZw..."
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

content-type
string
required

Content type, must be "application/json".

Allowed value: "application/json"

Body

application/json
email
string<email>
required

Email address for the user.

Maximum string length: 250
Pattern: ^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
Example:

"test@mail.com"

password
string
required

Password of the user.

Required string length: 6 - 100
Example:

"StrongP@ssw0rd"

Response

201 - application/json

Tokens generated successfully

data
object
required