POST
/
oauth
/
token
Exchange authorization code for access token
curl --request POST \
  --url https://console.gmicloud.com/api/v1/oauth/token \
  --header 'Content-Type: application/json' \
  --data '{
  "provider": "github",
  "code": "abc123def456"
}'
{
  "accessToken": "ya29.a0AfH6SMB..."
}

Body

application/json

The request body for exchanging authorization code.

The body is of type object.

Response

Successfully exchanged authorization code for access token.

The response is of type object.