Auth

Get a JWT token

POST

Get a JWT token for use with the Pier API by passing in a valid client_id/secret in the body

Request

This endpoint expects an object.
client_id
stringRequired
Your Pier API client ID
secret
stringRequired
Your Pier API client secret

Response

This endpoint returns an object
token
string
A JWT token to use with the Pier API (24h expiration)

Errors

POST
1curl -X POST https://production.pier-finance.com/api/token \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "client_id": "1234567890",
6 "secret": "1234567890"
7}'
1{
2 "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
3}