---
# @generated by sylphx-gen. Do not edit.
title: "Issue token on a chat profile"
description: "`events.chat_profiles.issue_token` (POST /v1/{name}:issueToken): Issues a bounded player capability after verified Auth token exchange."
type: reference
product: queues
summary: "Issues a bounded player capability after verified Auth token exchange."
updated: 2026-09-28
nav: false
---

Issues a bounded player capability after verified Auth token exchange.

- **Path** `POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/chat_profiles/chat-profile:issueToken`
- **Scope** `events:write`
- **Effect** `write` — a successful call changes state.
- **Collection** [chat_profiles](/docs/api/chat_profiles)

## Request

| Field | Type | What it is |
| --- | --- | --- |
| `name` | `string` | Profile in the canonical shared Chat environment. Required. |
| `ttl` | `duration` | Lifetime, 60s to 3600s; default 3600s. |

## Response

| Field | Type | What it is |
| --- | --- | --- |
| `token` | `string` | Present as Bearer on player Chat methods only. Never returned again. |
| `expire_time` | `timestamp` | Capability expiry. |
| `client_id` | `string` | Canonical verified player principal the token represents. |
| `profile` | `string` | Profile name in the shared Chat environment. |

## Errors

- [`PERMISSION_DENIED`](/docs/api/errors/PERMISSION_DENIED) — The key lacks the method's permission.
- [`INVALID_FIELD`](/docs/api/errors/INVALID_FIELD) — A field failed validation.
- [`RESOURCE_NOT_FOUND`](/docs/api/errors/RESOURCE_NOT_FOUND) — The named Resource does not exist or is not visible.
- [`UNAVAILABLE`](/docs/api/errors/UNAVAILABLE) — The Resource store, the owning service's backend, or the key verifier's snapshot is unavailable; retry after Retry-After.

Every error arrives in the body [Errors](/docs/platform/errors) describes.

## Examples

**cURL**

```curl
curl -X POST "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/chat_profiles/chat-profile:issueToken" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

**TypeScript**

```ts
const response = await sylphx.events.chatProfiles.issueToken({ name: 'orgs/acme/projects/shop/envs/production/chat_profiles/chat-profile' })
```

**Rust**

```rust
let mut req = sylphx::events::IssueChatTokenRequest::default();
req.name = "orgs/acme/projects/shop/envs/production/chat_profiles/chat-profile".to_string();
let response = sx.events().chat_profiles().issue_token(req).await?;
```

**CLI**

```bash
sylphx events chat-profiles issue-token orgs/acme/projects/shop/envs/production/chat_profiles/chat-profile
```

**MCP**

```json
{ "method_id": "events.chat_profiles.issue_token", "args": {"name":"orgs/acme/projects/shop/envs/production/chat_profiles/chat-profile"} }
```
