---
title: "POST /api/v2/token/new/"
method: POST
path: "/api/v2/token/new/"
tags: ["token"]
---

# POST /api/v2/token/new/

`POST /api/v2/token/new/`

## Request

- Base URL: `https://bankaccountdata.gocardless.com`
- URL: `https://bankaccountdata.gocardless.com/api/v2/token/new/`
- Auth: HTTP bearer

Obtain JWT pair

## Request body

- JWTObtainPairRequest: Obtain JWT pair.
  - `secret_id` string, required: Secret id from /user-secrets/
  - `secret_key` string, required: Secret key from /user-secrets/

## Response `200`

Obtain JWT response.

- SpectacularJWTObtain: Obtain new JWT pair.
  - `access` string: Your access token
  - `access_expires` integer: Access token expires in seconds
  - `refresh` string: Your refresh token
  - `refresh_expires` integer: Refresh token expires in seconds

## Other responses

- `401`: Incorrect secret key or id
- `403`: IP address not whitelisted
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/gocardless/apis/gocardless-bank-account-data-api.md) - [All operations](https://skmtc.dev/gocardless/apis/gocardless-bank-account-data-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gocardless/apis/gocardless-bank-account-data-api/revisions/01fd14b88051?raw)
