ID/Access Token

Login and generate ID Token

post
Body
usernamestringOptionalExample: [email protected]
passwordstringOptionalExample: secure
Responses
200
Successful operation
application/json
post
POST /rest/api/auth/login HTTP/1.1
Host: platform.exto360.com
Content-Type: application/json
Accept: */*
Content-Length: 51

{
  "username": "[email protected]",
  "password": "secure"
}
{
  "id_token": "text",
  "user": {
    "id": "text",
    "username": "[email protected]",
    "fullName": "John James",
    "email": "[email protected]",
    "company": "Exto",
    "role": "PME",
    "tenantId": "1234"
  }
}

Generate Access Token

post
Body
tenantIdstringOptionalExample: 1234
Responses
200
Successful operation
application/json
post
POST /rest/api/auth/access-token HTTP/1.1
Host: platform.exto360.com
Content-Type: application/json
Accept: */*
Content-Length: 19

{
  "tenantId": "1234"
}
{
  "access_token": "text",
  "id_token": "text"
}

Last updated

Was this helpful?