Skip to main content
POST
Typescript (SDK)

Body Parameters

Response

Headers

x-api-version
string
default:2.6.0
required

Body

grant_type
any
required

Always the RFC 8693 token exchange grant.

subject_token
string
required

The OIDC token your platform issued to this workload.

Required string length: 1 - 8192
subject_token_type
enum<string>
required

The subject token is a JWT.

Available options:
urn:ietf:params:oauth:token-type:jwt,
urn:ietf:params:oauth:token-type:id_token
audience
string

Your Autumn workload audience, as shown in Settings → Workload Identity (https://api.useautumn.com/workload/ORG_ID/ENV, where ENV is sandbox or live). Required when the subject token's aud is your own application, as with Azure managed identities.

Required string length: 1 - 500

Response

OK

access_token
string
required

Short-lived Autumn credential, prefixed am_wit_.

issued_token_type
any
required
token_type
any
required
expires_in
number
required

Seconds until the access token expires.

scope
string
required

Space-separated scopes the matching trust rule grants.