POST v1/getToken
Get the authentication token to make Serial number validation and Device Details API
Request Information
URI Parameters
None.
Body Parameters
TokenCredentials| Name | Description | Type | Additional information |
|---|---|---|---|
| client_id | string |
None. |
|
| client_secret | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"client_id": "sample string 1",
"client_secret": "sample string 2"
}
application/xml, text/xml
Sample:
<TokenCredentials xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Napco.NOC.Models"> <ClientId>sample string 1</ClientId> <ClientSecret>sample string 2</ClientSecret> </TokenCredentials>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Token response
TokenResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Token | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Token": "sample string 1"
}
application/xml, text/xml
Sample:
<TokenResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Napco.NOC.Models"> <Token>sample string 1</Token> </TokenResponse>