Admin guide
API
Get access token

Get access token

To make authenticated requests to the Seamless API, you first need to exchange your API credentials for a bearer token.

Use your Microsoft 365 Tenant ID, along with the keyId and secret generated in the Seamless Admin Center. These credentials will be used to request a secure API token, which is then included in all subsequent API calls.

Bearer Token Lifetime ⏳
For security reasons, the generated bearer token expires after 24 hours. Depending on your solution, we recommend either securely storing the token for reuse or generating a new one each time you call the API.

Request

POST /token 
Content-Type: application/json
{
  "tenantId": "00000000-0000-0000-0000-000000000000",
  "keyId": "e37e2481-7892-4808-8b07-f0a81bb50c11",
  "secret": "my-secret-value"
}
 

Response

HTTP/1.1 200 OK
Content-type: application/json
{
  "accessToken": "eyEMs...",
  "tenantId": "00000000-0000-0000-0000-000000000000",
  "expiresAt": "2025-04-07T10:27:27.7458568Z"
}