Generate an authorization token
post
/v0/token/gen
The Data Clearinghouse REST API requires a valid authorization token for each API call. An authorization token is valid for 15 minutes. After 15 minutes you can generate a new token with this API or use the refresh API to refresh the current token.
Request
Header Parameters
-
Referer:
An optional header that holds the address of a request for purposes of logging, analytics, and so on.
Supported Media Types
- application/json
Root Schema : schema
Type:
Show Source
object
-
clientID(required): string
The user ID assigned by the Data Clearinghouse administrator.
-
clientSecret(required): string
The password string initially assigned by the Data Clearinghouse administrator.
-
onBehalfOfClientID: string
The ID of another client for whom the current client does work. Valid only if the current client's account is authorized to do so.
-
scopes(required): array
scopes
Nested Schema : scopes
Type:
Show Source
array
-
Array of:
string
Allowed Values:
[ "UPLOAD", "DELETE", "UPDATE", "EXPORT_REDACTED", "EXPORT_NON_REDACTED", "EXPORT_SUMMARIZATION" ]
A scope is a permission the Data Clearinghouse administrator sets on your account to allow you to perform a specific function. Specify your scopes to associate them with the token.
Response
Supported Media Types
- application/json
Default Response
Default response
Root Schema : TokenResponse
Type:
Show Source
object
-
expiration: integer
(int64)
The expiration timecode.
-
token: string
The token string.