For the complete documentation index, see llms.txt. This page is also available as Markdown.

OAuth2 API

Get authorization token

post
/oauth2/token

This request is used by the issuer backend to get a Thales authorization token.

Header parameters
x-correlation-idstringOptional

Random identifier used to correlate API calls in one use case. Do not derive it from sensitive personal data. Use it only for logging and troubleshooting.

Pattern: ^[A-Za-z0-9_-]{1,64}$
Body
grant_typestring · enumRequired

Defines the OAuth 2.0 flow. Set this value to urn:ietf:params:oauth:grant-type:jwt-bearer.

Possible values:
assertionstringRequired

The complete JWT assertion. See Get OAuth2.0 access token for JWT generation details. The JWT must include iss, the issuer ID used to find the provisioned public key, and exp, an expiration time no more than 15 minutes from issuance. Use the ES256 algorithm.

Responses
200

Default allowed response

application/json
access_tokenstringOptional

The access token used to call D1 APIs.

Example: ey...HRT6LOON7w
expires_innumberOptional

Remaining lifetime of the access token, in seconds.

Example: 900
scopestringOptional

Scope of the access token used to call D1 APIs.

Example: d1-api:account:full d1-api:consumer:read
token_typestringOptional

Type of access token used to call D1 APIs.

Example: Bearer
post/oauth2/token
POST /authz/v1/oauth2/token HTTP/1.1
Host: api.d1.thalescloud.io
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 79

"grant_type='urn:ietf:params:oauth:grant-type:jwt-bearer'&assertion='text'"
{
  "access_token": "ey...HRT6LOON7w",
  "expires_in": 900,
  "scope": "d1-api:account:full d1-api:consumer:read",
  "token_type": "Bearer"
}

Last updated

Was this helpful?