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

# Refresh token for conversation

> Generates a new ephemeral token for the specified conversation, extending the session lifetime.
The old token will become invalid immediately after this operation completes.



## OpenAPI

````yaml api-reference/openapi3.json post /conversations/{conversation_id}/token/refresh
openapi: 3.0.0
info:
  title: Operator API
  version: '2025-06-19'
  description: API for Operator
servers:
  - url: https://api.operator.xyz
security: []
paths:
  /conversations/{conversation_id}/token/refresh:
    post:
      tags:
        - Conversations
      summary: Refresh token for conversation
      description: >-
        Generates a new ephemeral token for the specified conversation,
        extending the session lifetime.

        The old token will become invalid immediately after this operation
        completes.
      parameters:
        - name: Operator-Version
          in: header
          required: true
          schema:
            type: string
            enum:
              - '2025-06-19'
          description: The API version to use.
          example: '2025-06-19'
        - name: conversation_id
          in: path
          required: true
          schema:
            description: Unique identifier for the conversation, e.g. `conv_8qm9JBCiTe7`.
            type: string
          description: Unique identifier for the conversation, e.g. `conv_8qm9JBCiTe7`.
      responses:
        '200':
          description: Successful response.
          content:
            application/json:
              schema:
                properties:
                  token:
                    description: New ephemeral token for the conversation session.
                    type: string
                  expires_at:
                    description: UTC timestamp when the token expires.
                    format: date-time
                    type: string
                required:
                  - token
                  - expires_at
                type: object
        '404':
          description: The requested resource was not found.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  message:
                    type: string
                  data: {}
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key

````