> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bland.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Pathway Session Token

> Creates a new pathway session token for the authenticated user. This token can be used to access pathway chat and expires after 1 hour.

### Headers

**authorization** `string` *required*

Your API key for authentication.

### Response

**token** `string`

The generated pathway session token.

**expires\_at** `string`

ISO 8601 timestamp indicating when the token expires (1 hour from creation).

### Response Codes

**201** `success`

Token created successfully.

**401** `error`

Unauthorized - User authentication required.

**500** `error`

Internal server error - Token creation failed or unexpected error occurred.

```json Success Response theme={null}
{
  "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "expires_at": "2024-01-15T15:30:00.000Z"
}
```

```json Error Response (401) theme={null}
{
  "errors": [
    {
      "error": "UNAUTHORIZED",
      "message": "User authentication required"
    }
  ]
}
```

```json Error Response (500) theme={null}
{
  "errors": [
    {
      "error": "TOKEN_CREATION_FAILED", 
      "message": "Failed to create pathway session token"
    }
  ]
}
```

***

Docs for agents: [llms.txt](https://docs.bland.ai/llms.txt)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.