POST /api/v2/oauth2/token

Generate a JSON Web Token (JWT) with the OAuth 2.0 authorization protocol.

Request Body

Type: application/json

PropertyTypeMandatoryDescription
cliend_idstringYesThe company ID
client_secretstringYesA valid API key created by the Platform Owner or the Platform Administrators
grant_typestringYesclient_credentials

Returns

Returns a JSON Web Token (JWT) that expires after one hour. The JWT grants access to the 360Learning API v1 resources.

PropertyTypeMandatoryDescription
token_typestringYesThe type of the access token. Returns "Bearer".
access_tokenstringYesThe JSON Web Token.
expires_instringYesNumber of seconds until the token expires.

Errors

Status codeError bodyReason
400 - Bad Request"error": "invalid_request"- The client_id is either missing or invalid.
- The client_secret is missing.
- The grant_type is missing.
400 - Bad Request"error": "unsupported_grant_type"The grant_type is different from client_credentials.
401 - Unauthorized"error": "invalid_client"The client_secret is invalid.

Servers

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Request body fields

Name Type Required Description
client_id String No
client_secret String No
grant_type String No

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.