Skip to main content
POST
/
auth
/
v1
/
ad
/
login
/
invitation
LoginInvitation in the organization context and return tokens
curl --request POST \
  --url https://z52mnqg347.execute-api.eu-west-3.amazonaws.com/main/auth/v1/ad/login/invitation \
  --header 'Authorization: Bearer <token>' \
  --header 'content-type: <content-type>' \
  --data '
{
  "invitationToken": "aW52aXRhdGlvbi10b2tlbi1leGFtcGxlLXN0cmluZw...",
  "email": "test@mail.com",
  "password": "StrongP@ssw0rd",
  "firstName": "John",
  "lastName": "Doe",
  "phone": "0123456789",
  "lang": "fr"
}
'
{
  "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
invitationToken
string
required

Invitation token for user onboarding.

Example:

"aW52aXRhdGlvbi10b2tlbi1leGFtcGxlLXN0cmluZw..."

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"

firstName
string
required

First name of the profile.

Maximum string length: 250
Example:

"John"

lastName
string
required

Last name of the profile.

Maximum string length: 250
Example:

"Doe"

phone
string
required

Phone number of the profile.

Maximum string length: 20
Example:

"0123456789"

lang
enum<string>

Language of the profile.

Available options:
fr,
en,
de
Example:

"fr"

Response

201 - application/json

Tokens generated successfully

data
object
required