Skip to main content
POST
Exchange a partner JWT

Body

grant_type
enum<string>
required

The OAuth 2.0 grant type.

Available options:
urn:ietf:params:oauth:grant-type:jwt-bearer,
refresh_token
assertion
string

The partner-signed JWT. Required when grant_type is urn:ietf:params:oauth:grant-type:jwt-bearer.

refresh_token
string

A refresh token from a prior exchange. Required when grant_type is refresh_token.

Response

A bearer access token and refresh token

access_token
string
required

Bearer token for the Ramp API. Send it as Authorization: Bearer <access_token>.

token_type
string
required
Example:

"Bearer"

expires_in
integer
required

Access token lifetime, in seconds.

Example:

3600

refresh_token
string
required

Use with the refresh_token grant to obtain a fresh access token without re-signing a JWT.

scope
string

The granted scope, echoed from the JWT's scope claim. Omitted for unrestricted (non-partner) sessions.