Skip to main content
POST
/
oauth2
/
token
Token
curl --request POST \
  --url https://api.tickable.io/oauth2/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data grant_type=authorization_code \
  --data client_id=your-client-id \
  --data client_secret=your-client-secret \
  --data 'code=<string>' \
  --data redirect_uri=https://app.example.com/callback \
  --data 'refresh_token=<string>'
{
  "access_token": "eyJhbGciOiJIUzI1NiIs...",
  "token_type": "Bearer",
  "expires_in": 3600,
  "refresh_token": "dGhpcyBpcyBhIHJlZnJlc2g...",
  "scope": "events.read webhooks.read"
}

Body

grant_type
string
required

One of: authorization_code, client_credentials, refresh_token

Example:

"authorization_code"

client_id
string
required
Example:

"your-client-id"

client_secret
string
required
Example:

"your-client-secret"

code
string

Authorization code (for authorization_code grant)

redirect_uri
string
Example:

"https://app.example.com/callback"

refresh_token
string

Refresh token (for refresh_token grant)

Response

Access token issued

access_token
string
required
Example:

"eyJhbGciOiJIUzI1NiIs..."

token_type
string
required
Example:

"Bearer"

expires_in
number
required
Example:

3600

refresh_token
string
Example:

"dGhpcyBpcyBhIHJlZnJlc2g..."

scope
string
Example:

"events.read webhooks.read"