IAM#
Before your application can access private data using other Workiva APIs, it must obtain an access token that grants access to those APIs.
Use the IAM REST API endpoint to exchange your OAuth credentials (client_id and client_secret) for a token.
BearerToken#
Bearer token to use in subsequent requests to the Workiva APIs.
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
access_token |
string |
The opaque string used to authorize and make requests on behalf of the user |
required |
expires_in |
integer |
The number of seconds the access token is valid |
required |
scope |
string |
The limits of the user’s access with the token, such as Read or Create |
required |
token_type |
string |
The type of access token; typically bearer |
required |
Example#
{
"access_token": "string",
"expires_in": 0,
"scope": "string",
"token_type": "string"
}
IamError#
Error response object containing an error code.
Properties#
Name |
Type |
Description |
Restrictions |
|---|---|---|---|
error |
string |
The possible |
|
error_description |
string |
Human-readable ASCII text providing additional information. |
|
error_uri |
string |
A URI identifying a human-readable web page with information about the error. |
Example#
{
"error": "string",
"error_description": "string",
"error_uri": "string"
}