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

# Generate Bearer Token

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

## Request

- Base URL: `https://api-v2.honeycoin.app`
- URL: `https://api-v2.honeycoin.app/api/b2b/auth/generate-bearer-token`
- Auth: none required

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.dev/honeycoin/apis/honeycoin-v3-api-official.md) - [All operations](https://skmtc.dev/honeycoin/apis/honeycoin-v3-api-official/llms.txt) - [OpenAPI document](https://skmtc.dev/honeycoin/apis/honeycoin-v3-api-official/revisions/fcb58b0ef441?raw)
