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

Send the partner-signed JWT here when grant_type is urn:ietf:params:oauth:grant-type:jwt-bearer.

refresh_token
string

Send a refresh token from an earlier exchange here when grant_type is refresh_token.

Response

An access token and a refresh token.

access_token
string
required

Send this to the Ramp API as Authorization: Bearer <access_token>.

expires_in
integer<int64>
required

The access token's lifetime, in seconds.

Required range: x >= 0
Example:

3600

refresh_token
string
required

Send this with the refresh_token grant to get a new access token without signing another JWT.

token_type
string
required
Example:

"Bearer"

scope
string

We copy the granted scope from the JWT's scope claim. We leave it out for a session with no scope.