Skip to main content
POST
/
auth
/
oauth
/
exchange-code
Exchange OAuth login code
curl --request POST \
  --url https://core.cyberun.cloud/api/v1/auth/oauth/exchange-code \
  --header 'Content-Type: application/json' \
  --data '
{
  "code": "a1b2c3d4e5f6..."
}
'
{
  "access_token": "eyJhbGciOiJIUzI1NiIs...",
  "refresh_token": "eyJhbGciOiJIUzI1NiIs...",
  "expires_in": 3600
}

Documentation Index

Fetch the complete documentation index at: https://docs.cyberun.cloud/llms.txt

Use this file to discover all available pages before exploring further.

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