Skip to main content
POST
Exchange a grant for tokens

Body

application/x-www-form-urlencoded
client_id
enum<string>
required
Available options:
simforge-cli
grant_type
enum<string>
required
Available options:
urn:ietf:params:oauth:grant-type:device_code
device_code
string
required

Response

A CLI session's access and refresh tokens; an agent's first access token and identity assertion (claim grant); or a fresh access token (JWT-bearer grant).

access_token
string
required

A sfc_at_… bearer token for /api/v1 and /api/cli.

token_type
enum<string>
required
Available options:
Bearer
expires_in
integer
required
refresh_token
string
required
refresh_expires_in
integer
required
scope
string
required
session_id
string
required
account
object
required
organization
object
required