Skip to main content
POST
/
open-api
/
v1.0
/
platform
/
token
Exchange authorization code or refresh token for access token
curl --request POST \
  --url https://api.fourthwall.com/open-api/v1.0/platform/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data client_id=app_12345 \
  --data 'client_secret=<string>' \
  --data grant_type=authorization_code \
  --data redirect_uri=https://example.com/callback \
  --data 'code=<string>' \
  --data 'refresh_token=<string>'
{}

Body

OAuth 2.0 token request

client_id
string
required

OAuth application client ID

Example:

"app_12345"

client_secret
string
required

OAuth application client secret

grant_type
enum<string>
required

OAuth grant type

Available options:
authorization_code,
refresh_token
Example:

"authorization_code"

redirect_uri
string

Redirect URI used during authorization (required for authorization_code grant)

Example:

"https://example.com/callback"

code
string

Authorization code (required for authorization_code grant)

refresh_token
string

Refresh token (required for refresh_token grant)

Response

200 - application/json

OK

The response is of type object.