Access Tokens
Authentication token for securely accessing Endorsed's API endpoints
Create an Access Token
POST
https://endorsed.ai/api/v1/auth/tokens
Creates a new Access Token to be used in subsequent API calls.
Access tokens are short-lived for security reasons. Expiration times are returned in the response; please request another access token before the previous one expires to prevent any downtime in your service.
Headers
Content-Type
string
The content type which specifies the format to which client credentials, grant type, scope, etc. are provided (See examples below). Only supports application/json
and application/x-www-form-urlencoded
. Defaults to application/x-www-form-urlencoded
Request Body
client_id*
string
The Client ID (UUID) of the client credentials provided by Endorsed for your Organization
client_secret*
string
The Client Secret of the client credentials provided by Endorsed for your Organization
grant_type*
string
The grant type of the Access Token. Only client_credentials
is currently supported.
scope
string[] OR string
List of allowed access scope strings for this API Key. Supported scopes: all:read
and all:write
.
For application/json
content type:
Type - string[]
Default - ["all:read", "all:write"]
For application/x-www-form-urlencoded
content type:
Type - string
with space delimited scopes
Default - all:read all:write
Examples:
Using URL Encoded Form Data
Using JSON
Last updated