---
title: "POST /generate-token"
method: POST
path: "/generate-token"
tags: ["Authorization", "Security"]
---

# POST /generate-token

`POST /generate-token`

Generates JWT Authorization token required for accessing ClickPesa APIs

## Headers

- `client-id` string, required
- `api-key` string, required

## Response `200`

Generate token response

- GenerateTokenResponse
  - `success` boolean, required
  - `token` string, required

## Other responses

- `401` — Unauthorized
- `403` — Invalid Client Details

---

[API](https://skmtc.dev/clickpesa/apis/core-api-openapi-specification.md) · [All operations](https://skmtc.dev/clickpesa/apis/core-api-openapi-specification/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/clickpesa/core-api-openapi-specification/revisions/9f70f35c5590/schema)
