Use the Authorization Code Request endpoint to get an authorization code that can subsequently be used to generate an API access token valid to access the Watchlist API endpoints.
This endpoint should be accessed by an InsideView for Sales administrator and requires some user interactions to grant access to InsideView for Sales user data. The response, post consent to access user data, is an JSON message containing the code grant that can be used to generate an access token valid for accessing the Watchlist API endpoints.
Refer to Authentication and Authorization Overview article for more details.
Endpoint
POST https://login.insideview.com/Auth/login/v1/authorize
Request
HTTP Headers
Header Name | Type | Required | Description |
Accept | String | No | Selects the response's content type. Valid values are application/json and application/xml (default). |
Query Parameters
Parameter Name | Type | Required | Description |
clientId | String | Yes | Your client ID. |
prompt | String | Yes | Fixed value: "admin_consent" |
Responses
HTTP 200
Returns an HTML page containing a JSON message.
Name | Type | Description |
clientId | String | Your client ID. |
redirectionUrl | String | Empty value in this case |
code | String | Your code grant to be used for access token generation |
state | String | Empty value in this case |
application/json Example
{
"clientId":"18bh9700jvvcdfb26a1l",
"redirectionUrl":"",
"code":"d8d658e1-f809-4b81-ae01-c2d574c98be5",
"state":""
}
HTTP 400
Invalid query parameter(s).
Comments
0 comments
Please sign in to leave a comment.