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

# Authorize a Web Agent Call

> Create a single-use session token for a client to talk with your web agent.

### Headers

<ParamField header="authorization" type="string" required={true}>
  Your API key for authentication.
</ParamField>

### Path Parameters

<ParamField path="agent_id" type="string" required={true}>
  The web agent to authorize a call for.

  Special note: While in Beta, this request must be made to the `web.Luly.ai` domain.
</ParamField>

### Response

<ResponseField name="token" type="string">
  The single-use session token that can be sent to the client.
</ResponseField>

<ResponseField name="status" type="string">
  Can be `success` or `error`.
</ResponseField>

<ResponseField name="message" type="string">
  A message saying whether the token creation succeeded, or a helpful message describing why it failed.
</ResponseField>

<ResponseExample>
  ```json Response
  {
    "token": "22480c52-0ff1-4214-bcb7-50649b508432"
  }
  ```
</ResponseExample>
