Skip to main content

Authentication

Obtain Access Token

Obtain an access_token by specifying the client_key and client_secret. A token is required for calling any of the API endpoints.

HTTP
POST https://api-test.instarem.com:4803/api/v1/authentication

Header Parameters:

ParameterDescriptionRequired
client_keyClient Key provided to client/partner by NiumYes
client_secretClient Secret Key provided to client/partner by NiumYes

Example Request:

curl --request post \
--url "https://api-test.instarem.com:4803/api/v1/authentication" \
--header 'client_key: 646328ryCV1T1Qb230681S1g0N1ayQZ' \
--header 'client_secret: 0dfc9110-51a1-11e7-9c6a-efd0a4ece369'

Response:

TokenDescriptionRequired
tokenAuthentication Token ReturnedYes
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2MjA0NTQ5OTAsImRhdGEiOnsicGFydG5lcklkIjoiNWYyMjgwZWI1OWY5OWEwMDExNDk1YTM2IiwiY3JlZElkIjoiNWYyMjgwZWI1OWY5OWEwMDExNDk1YTM3In0sImlhdCI6MTYyMDM2ODU5MH0.7WVG4owra6FM-VxK7iqi5HeEuDBjmhNLlw1-DkBhwXl4"
}