---
title: "Get a JWT token"
method: POST
path: "/token"
tags: ["Auth"]
---

# Get a JWT token

`POST /token`

## Request

- Base URL: `https://production.pier-finance.com/api`
- URL: `https://production.pier-finance.com/api/token`
- Auth: none declared

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

## Request body

- AuthRequest
  - `client_id` string, required: Your Pier API client ID
  - `secret` string, required: Your Pier API client secret

## Response `200`

- AuthResponse
  - `token` string, required: A JWT token to use with the Pier API (24h expiration)

## Other responses

- `401`
- `429`
- `500`

---

[API](https://skmtc.dev/pier-finance/apis/pier-api.md) - [All operations](https://skmtc.dev/pier-finance/apis/pier-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pier-finance/apis/pier-api/revisions/08a7c49252b9?raw)
