New Ory Agent Security is now live! Claim your complimentary test drive. Get Started!

Skip to main content

The OAuth 2.0 Token Endpoint

POST 

/oauth2/token

Use open source libraries to perform OAuth 2.0 and OpenID Connect available for any programming language. You can find a list of libraries here https://oauth.net/code/

This endpoint should not be used via the Ory SDK and is only included for technical reasons. Instead, use one of the libraries linked above.

SDK ReferenceTypeScript
oauth2TokenExchange()
ParametersTypeRequiredDescription
grantTypestringrequired
clientIdstringoptional
codestringoptional
redirectUristringoptional
refreshTokenstringoptional
VariableType
dataOAuth2TokenExchange