POST /api/v2/oauth2/token
Generate a JSON Web Token (JWT) with the OAuth 2.0 authorization protocol.
Request Body
Type: application/json
Property | Type | Mandatory | Description |
---|---|---|---|
cliend_id | string | Yes | The company ID |
client_secret | string | Yes | A valid API key created by the Platform Owner or the Platform Administrators |
grant_type | string | Yes | client_credentials |
Returns
Returns a JSON Web Token (JWT) that expires after one hour. The JWT grants access to the 360Learning API v1 resources.
Property | Type | Mandatory | Description |
---|---|---|---|
token_type | string | Yes | The type of the access token. Returns "Bearer" . |
access_token | string | Yes | The JSON Web Token. |
expires_in | string | Yes | Number of seconds until the token expires. |
Errors
Status code | Error body | Reason |
---|---|---|
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
- https://app.360learning.com
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
- Add HTTP Task to your workflow definition.
- 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.
- Click Test request to test run your request to the API and see the API's response.