Skip to main content
POST
Exchange OAuth login code

Body

application/json
code
string
required

One-time OAuth login code returned to the Cyberun dashboard after provider callback.

Maximum string length: 4096
Example:

"a1b2c3d4e5f6..."

Response

OAuth login successful

access_token
string
required

Short-lived JWT for authenticating API requests (sent in Authorization Bearer header).

Example:

"eyJhbGciOiJIUzI1NiIs..."

refresh_token
string
required

Long-lived JWT used to obtain new access/refresh token pairs.

Example:

"eyJhbGciOiJIUzI1NiIs..."

expires_in
integer
required

Access token lifetime in seconds (e.g. 3600 = 1 hour).

Example:

3600