O Auth
OAuth 2.0 authorization server: authorize, token, revoke, introspect, userinfo
Start an authorization request (redirects to the SalesOS consent screen)
Query Parameters
response_typestringclient_idstringredirect_uristringscopestringstatestringcode_challengestringcode_challenge_methodstringnoncestringpromptstring"none" | "consent" | "login"Token endpoint: authorization_code (+PKCE), refresh_token, client_credentials
Request Body
application/jsonRequiredgrant_typestring"authorization_code" | "refresh_token" | "client_credentials"codestringredirect_uristringcode_verifierstringrefresh_tokenstringscopestringclient_idstringclient_secretstringtokenstringrevoke / introspect
token_type_hintstring"access_token" | "refresh_token"Header Parameters
Idempotency-KeystringUnique key (a UUID is ideal) that makes this write safe to retry for 24 hours: a retry with the same body replays the original response (Idempotent-Replayed: true); the same key with a different body is a 409.
255Revoke an access or refresh token (RFC 7009)
Request Body
application/jsonRequiredgrant_typestring"authorization_code" | "refresh_token" | "client_credentials"codestringredirect_uristringcode_verifierstringrefresh_tokenstringscopestringclient_idstringclient_secretstringtokenstringrevoke / introspect
token_type_hintstring"access_token" | "refresh_token"Header Parameters
Idempotency-KeystringUnique key (a UUID is ideal) that makes this write safe to retry for 24 hours: a retry with the same body replays the original response (Idempotent-Replayed: true); the same key with a different body is a 409.
255Introspect one of the calling client's tokens (RFC 7662)
Request Body
application/jsonRequiredgrant_typestring"authorization_code" | "refresh_token" | "client_credentials"codestringredirect_uristringcode_verifierstringrefresh_tokenstringscopestringclient_idstringclient_secretstringtokenstringrevoke / introspect
token_type_hintstring"access_token" | "refresh_token"Header Parameters
Idempotency-KeystringUnique key (a UUID is ideal) that makes this write safe to retry for 24 hours: a retry with the same body replays the original response (Idempotent-Replayed: true); the same key with a different body is a 409.
255OpenID Connect userinfo (POST form)
Header Parameters
Idempotency-KeystringUnique key (a UUID is ideal) that makes this write safe to retry for 24 hours: a retry with the same body replays the original response (Idempotent-Replayed: true); the same key with a different body is a 409.
255