Create an access token
POST/access-tokens
Creates a personal access token (PAT) for the calling user. The request must use a valid Cognito session token; a PAT cannot be used to create another PAT. The user must be active and have access to the specified role. On success, returns Message, AccessToken, and AccessTokenId.
Request
Responses
- 200
- 400
- 500
Token created successfully. Message is either "Successfully created access token" or "Successfully created access token for service user". AccessToken contains the JWT and is returned only once. AccessTokenId contains the token ID.
Response Headers
Validation or authorization failure. Body is {"Message": " -
Response Headers
Backend failure, or creating a PAT with another PAT (Message "Access tokens cannot be created using another access token"). Other failures typically RTE-1001 via EMF-1001. Missing required body keys may KeyError into 500.