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

# Mint a live-view token

> Mints a fresh live-view token (and hosted viewer URL) for an active session, per the session's allocate-time live_view settings: token-mode sessions re-issue the bearer link allocate returned once, org-mode sessions exchange the caller's identity. Refused for sessions allocated with live_view.disabled, for inactive sessions, and for sessions outside the caller's organization (reads as not found). Sharp edge: the returned URL embeds the token and is a bearer capability — whoever holds it can watch (and, unless the session was allocated view-only, drive) the phone until the session ends, at which point both stop working.



## OpenAPI

````yaml /api-reference/openapi-backend.json post /phones/sessions/{session_id}/live-view-token
openapi: 3.1.0
info:
  description: Axilio backend HTTP API.
  title: Axilio API
  version: 0.85.0
servers:
  - url: https://api.axilio.ai/api/v1
    description: Production
security: []
tags:
  - name: API Keys
  - name: Billing
  - name: Files
  - name: Organization
  - name: Phones
  - name: Runs
  - name: Skill
  - name: Usage
  - name: Workflows
paths:
  /phones/sessions/{session_id}/live-view-token:
    post:
      tags:
        - Phones
      summary: Mint a live-view token
      description: >-
        Mints a fresh live-view token (and hosted viewer URL) for an active
        session, per the session's allocate-time live_view settings: token-mode
        sessions re-issue the bearer link allocate returned once, org-mode
        sessions exchange the caller's identity. Refused for sessions allocated
        with live_view.disabled, for inactive sessions, and for sessions outside
        the caller's organization (reads as not found). Sharp edge: the returned
        URL embeds the token and is a bearer capability — whoever holds it can
        watch (and, unless the session was allocated view-only, drive) the phone
        until the session ends, at which point both stop working.
      operationId: phones_session_live_view_token
      parameters:
        - description: Phone session identifier
          in: path
          name: session_id
          required: true
          schema:
            description: Phone session identifier
            format: uuid
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneLiveViewTokenResponse'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/V2ErrorModel'
          description: Error
      security:
        - apiKeyAuth: []
components:
  schemas:
    PhoneLiveViewTokenResponse:
      additionalProperties: false
      description: Live-view token mint response.
      properties:
        live_view_url:
          description: >-
            Hosted live-view page URL embedding this token (live screen +
            interaction, iframe-embeddable). Bearer capability; treat as a
            secret. Dies with the session.
          type: string
        phone_id:
          description: The session's phone.
          type: string
        session_id:
          description: Session the token is scoped to.
          type: string
        token:
          description: Allocation-scoped live-view token.
          type: string
        view_only:
          description: Whether the session's live view is watch-only.
          type: boolean
      required:
        - token
        - phone_id
        - session_id
        - view_only
        - live_view_url
      type: object
    V2ErrorModel:
      additionalProperties: false
      description: >-
        Error response, following RFC 9457 (Problem Details for HTTP APIs).
        Returned with a application/problem+json content type.
      properties:
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/V2ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
      type: object
    V2ErrorDetail:
      additionalProperties: false
      description: >-
        One specific problem within an error response, locating the offending
        part of the request.
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
  securitySchemes:
    apiKeyAuth:
      description: Customer API key (axl_ prefix).
      in: header
      name: X-Axilio-Api-Key
      type: apiKey

````

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