---
title: "Generate Bearer Token"
method: POST
path: "/api/b2b/auth/generate-bearer-token"
---

# Generate Bearer Token

`POST /api/b2b/auth/generate-bearer-token`

Generates or retrieves a valid bearer token for a given public key. This token is used to authenticate requests and lasts for 1 hour.

## Headers

- `api-key` string

## Request body

- object
  - `publicKey` string

## Response `200`

200

- object
  - `success` boolean
  - `token` string

## Other responses

- `400` — 400

---

[API](https://skmtc.net/honeycoin/apis/honeycoin-v3-api-official.md) · [All operations](https://skmtc.net/honeycoin/apis/honeycoin-v3-api-official/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/honeycoin/honeycoin-v3-api-official/revisions/f3fef13ed253/schema)
