Getting Started
Authentication
Nymcard uses OAuth 2.0 Bearer Token Usage to allow access to the APIs.
Nymcard expects the bearer token authentication to be included in all API requests to the server in a header that looks like the following:
Authorization: Bearer <temporary-bearer-token>
Getting a Bearer Token
To obtain a temporary bearer token, use this code:
bash
Make sure to replace <your-public-key> and <your-private-key> with your API keys. The information can be found from your merchant dashboard > settings > integrations.
The above command returns JSON structured like this:
json
You must replace temporary-bearer-token with the returned temporary bearer token. The token is valid for 5 minutes.