Skip to main content
POST
/
auth
/
token
Exchange a partner JWT
curl --request POST \
  --url https://api.etherfuse.com/auth/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer \
  --data assertion=eyJhbGciOiJSUzI1NiIsImtpZCI6Imt...
{
  "access_token": "<string>",
  "token_type": "Bearer",
  "expires_in": 3600,
  "refresh_token": "<string>",
  "scope": "<string>"
}

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.