Juice ReelJuice Reel

OAuth 2.0

Exchange an authorization code

Exchange the callback code for an access token and rotating refresh token. Perform this request only from your backend.

POST/oauth2/token
AuthenticationHTTP Basic: client ID and client secret
Required scopeNot applicable
SECURITY WARNING: Call this endpoint only from your backend. Never call it from browser or mobile frontend code. Your client secret must never be included in frontend application bundles, shipped to users, or exposed to clients.

Request query parameters

FieldTypeDescription
grant_typerequiredstringMust be authorization_code.
coderequiredstringCode received by your redirect URI.
redirect_urirequiredstringMust exactly match the URI used during authorization.
code_verifierrequiredstringOriginal PKCE verifier used to create the challenge.

Response

200 · application/json
FieldTypeDescription
access_tokenstringBearer token used for resource requests. Store server-side.
refresh_tokenstringSingle-use token used to obtain a replacement token pair.
token_typestringBearer.
expires_inintegerAccess-token lifetime in seconds; currently 3600.
scopestringSpace-delimited scopes granted by the user.
Exchange an authorization code | Juice Reel API Docs