| POST | /api/authentication/token | Get Bearer access token, contact support for credentials |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ClientId | model | string | Yes | Post parameters in body |
| ClientSecret | model | string | Yes | Post parameters in body |
| Scope | model | string | Yes | Post parameters in body |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| AccessToken | form | string | Yes | |
| Scope | form | string | Yes | |
| TokenType | form | string | Yes | |
| ExpiresIn | form | int | No | |
| HttpStatusCode | form | int | No | |
| HttpErrorReason | form | string | Yes | |
| Error | form | string | Yes |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /api/authentication/token HTTP/1.1
Host: stf-api-uat.data-xchange.co.za
Accept: application/json
Content-Type: application/json
Content-Length: length
{"clientId":"String","clientSecret":"String","scope":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"accessToken":"String","scope":"String","tokenType":"String","expiresIn":0,"httpStatusCode":0,"httpErrorReason":"String","error":"String"}