---
title: "Refresh an expired token"
method: POST
path: "/v1/auth/token/refresh"
tags: ["Authenticate"]
---

# Refresh an expired token

`POST /v1/auth/token/refresh`

You can use this endpoint to refresh an expired `access_token`.

## Headers

- `accountId` string, uuid, required

## Request body

- RefreshTokenRequest — A structure representing a refresh token request.
  - `grant_type` 'client_credentials' | 'refresh_token', required — The grant type of the authentication.
  - `refresh_token` string, required — A Base64 Encoded String used to refresh an expired access_token

## Response `200`

Your request to refresh a token was successful.

- object
  - `code` string, required — Response Code
  - `description` string, required — Response description
  - `data` IssueTokenResponse, required — A structure representing an authentication result.
    - `businessId` string, required — The accountId of the merchant/business that is connecting to the Nomba system via API
    - `access_token` string, required — A JWT (Json Web Token) token used to grant access to resources on the Nomba API.
    - `refresh_token` string, required — A Base64 Encoded String used to refresh an expired access_token
    - `expiresAt` string, required — The date and time this entity was created. This value uses Coordinated Universal Time (UTC) and ISO 8601 format – `YYYY-MM-DDThh:mm:ssZ`.

## Other responses

- `400` — The request body sent by merchant did not pass the validation checks
- `401` — The access_token provided to access the resource is missing or invalid.
- `403` — The client does not have the permissions to access this resource
- `404` — The record that the client is trying to access does not exist.
- `429` — The client has maxed out the number of calls within a time period on this resource.
- `500` — Downstream system error.

---

[API](https://skmtc.net/nomba/apis/vendor-api.md) · [All operations](https://skmtc.net/nomba/apis/vendor-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nomba/vendor-api/revisions/41727ac9be5f/schema)
