Request Sandbox KeysSee a Demo
  • Overview
    • Quickstart
    • Payments and Disbursements
    • Errors
    • Webhooks
  • Guides
    • Compliance
    • Starter Mode
    • KYC
    • Line of Credit program
    • Buy Now Pay Later program
  • API Reference
LogoLogo
Request Sandbox KeysSee a Demo
API ReferenceAuth

Get a JWT token

POST
/token
POST
/api/token
1curl -X POST https://production.pier-finance.com/api/token \
2 -H "Content-Type: application/json" \
3 -d '{
4 "client_id": "1234567890",
5 "secret": "1234567890"
6}'
Try it
200Successful
1{
2 "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
3}
Get a JWT token for use with the Pier API by passing in a valid `client_id`/`secret` in the body
Was this page helpful?
Previous

Create a business borrower

Next
Built with
Create a business borrower

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_idstringRequired
Your Pier API client ID
secretstringRequired
Your Pier API client secret

Response

This endpoint returns an object.
tokenstring

A JWT token to use with the Pier API (24h expiration)

Errors