Authentication
You'll need to authenticate your requests to access any of the endpoints in the Stamp Expert API. In this guide, we'll look at how authentication works. Stamp Expert offers one way to authenticate your API requests: OAuth2 with a token.
OAuth2 with bearer token
The only way to authenticate with the Stamp Expert API is by using OAuth2. When establishing a connection using OAuth2, you will need your access token — you will find it in the Stamp Expert dashboard under API settings. Here's how to add the token to the request header using cURL:
Example request with bearer token
curl https://api.stamp.expert/v1/calculate \
-H "Authorization: Bearer {token}"
Always keep your token safe and reset it if you suspect it has been compromised.
Never expose your token to the public. In the case of a web app usage, please proxy your API requests to a server-side endpoint.