This endpoint is used to retrieve the access token for single sign-on (SSO) authentication. It is a GET request with the following parameters in the query string:
500 Internal Server Error: An error occurred while processing the request.
Request
Query Params
code
stringÂ
required
The code parameter is an authorization code received after a successful authentication request. This code is exchanged for an access token
Example:
string
client_id
stringÂ
required
This identifies the application making the request to the SSOJET server. You can find your client ID on the API Keys page in the dashboard
Example:
string
state
stringÂ
required
The state parameter is used to track the status of a user authencation in the REST API. It helps in maintaining the user authencation context and monitoring its progress throughout the request lifecycle
Example:
string
Header Params
Content-Type
stringÂ
optional
Default:
application/json
User-Agent
stringÂ
optional
Default:
SSOjet/1.0.0 (https://ssojet.com)
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET 'https://api.ssojet.com/api/v1/sso/oauth/accesstoken?code=string&client_id=string&client_id=&state=string' \
--header'User-Agent: SSOjet/1.0.0 (https://ssojet.com)' \
--header'Content-Type: application/json'