Skip to main content
Create an access token using the user information stored in the Composer platform

Authorizations

Authorization
string
header
required

HTTP Basic authentication using Trusted Access client credentials. Use the client ID as the username and the client secret as the password. Trusted Access clients are managed via the /api/trusted-access/clients endpoints.

Headers

x-preprocess-credentials-for
string

Body

application/json

Access token creation request

username
string
required

User name

Maximum string length: 255
account
string

Account name (if not specified, defaults to the active account of the user)

Maximum string length: 255
Pattern: ^(?!\s*$).+

Response

The access token was created successfully

Defines a Trusted Access Token

access_token
string

Access token

expires_in
integer<int32>

The lifetime in seconds of the access token.

token_type
string

Token type