---
title: "Create a token to be used for inbox"
method: POST
path: "/chat/token/inbox"
tags: ["Chat"]
---

# Create a token to be used for inbox

`POST /chat/token/inbox`

Create a token to be used for inbox

## Request body

- InboxTokenBodyParamDef

## Response `200`

The created inbox token to be return

- InboxTokenResponse
  - `online_user_map` string
  - `access_tokens` AccessTokensItem[], required
    - `type` string, required
    - `value` string, required

## Other responses

- `400` — Usually caused by invalid input
- `401` — Failed to authenticate the user making the request
- `default` — Server error occurred

---

[API](https://skmtc.dev/staffshift/apis/staffshift-api-gateway.md) · [All operations](https://skmtc.dev/staffshift/apis/staffshift-api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/staffshift/staffshift-api-gateway/revisions/6e2cb83db3a9/schema)
