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

> ## Agent Instructions
> Integrating Pilot Status end to end? Follow https://docs.pilotstatus.com.br/guides/integrate-with-ai.md (pt-BR: https://docs.pilotstatus.com.br/pt-BR/guides/integrate-with-ai.md). No step requires contacting support: every credential is shown in the dashboard or in an API response, and a lost one is regenerated, not recovered.
> Webhook signing secret: shown ONCE in the Signing secret window right after creating the webhook on /webhooks, and in the `secret` field of the POST /v1/webhooks response (MCP: webhooks_create). Lost it: Edit Webhook → Generate a new secret, POST /v1/webhooks/{id}/rotate-secret, or webhooks_rotate_secret (the old one stops working at once). Verify `x-pilot-status-signature` = hex HMAC-SHA256 of the raw request body keyed with that secret.
> Meta verify token (number connected with the user's own Meta app credentials): Meta Number Created! window after connecting, then the number's card on Numbers (workspace Owner), or webhook.verifyToken in the POST /v1/numbers/meta response. It is not the webhook signing secret.
> REST auth: `x-api-key: ps_...` header, never Authorization: Bearer. MCP: https://mcp.pilotstatus.com.br/mcp (148 tools, OAuth 2.1 or x-api-key); Code Mode: https://mcp.pilotstatus.com.br/code. Destructive MCP tools return a preview and a confirm_token: show the preview and call again only after the user's explicit yes. Over OAuth, revealing or creating ps_ API keys is workspace Owner only.

# Obtener una historia

> Devuelve una historia del número de la credencial, con la lista **efectiva** de destinatarios (sin tu propio número). `recipients` es `null` mientras está `QUEUED`, y `null` con `redacted: true` fuera de la ventana de retención de contenido. Un mensaje que no es una historia, o una historia de otro número, devuelve `404`.

**Auth:** las claves de cuenta y los tokens OAuth necesitan `logs:read:content`.



## OpenAPI

````yaml openapi.es.json GET /v1/stories/{id}
openapi: 3.1.0
info:
  title: Pilot Status API
  version: 1.0.0
  license:
    name: Pilot Status Terms of Service
    url: https://pilotstatus.com.br/terms
  description: >-
    API REST pública de Pilot Status. Autentícate con el encabezado `x-api-key:
    ps_...` (o `x-api-key-id`). URL base: https://pilotstatus.com.br
servers:
  - url: https://pilotstatus.com.br
security:
  - apiKey: []
  - apiKeyId: []
paths:
  /v1/stories/{id}:
    get:
      tags:
        - Stories
      summary: Obtener una historia
      description: >-
        Devuelve una historia del número de la credencial, con la lista
        **efectiva** de destinatarios (sin tu propio número). `recipients` es
        `null` mientras está `QUEUED`, y `null` con `redacted: true` fuera de la
        ventana de retención de contenido. Un mensaje que no es una historia, o
        una historia de otro número, devuelve `404`.


        **Auth:** las claves de cuenta y los tokens OAuth necesitan
        `logs:read:content`.
      operationId: get_stories_id
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Id de la historia (el `id` devuelto por `POST /v1/stories`).
      responses:
        '200':
          description: Historia
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Story'
              example:
                id: cm3story0001
                type: image
                status: SENT
                caption: Nova coleção
                recipientsMode: explicit
                recipientCount: 2
                recipients:
                  - '5511999999999'
                  - '5521988887777'
                createdAt: '2026-11-10T14:00:00.000Z'
                sentAt: '2026-11-10T14:00:03.000Z'
                revokedAt: null
                deliverAt: null
                errorMessage: null
                errorCode: null
        '401':
          description: Clave de API inválida
          content:
            application/json:
              example:
                error: Invalid API key
        '403':
          description: Credencial no permitida
        '404':
          description: Historia no encontrada
      security:
        - apiKey: []
        - apiKeyId: []
components:
  schemas:
    Story:
      type: object
      properties:
        id:
          type: string
        type:
          type: string
          enum:
            - text
            - image
            - video
        status:
          type: string
          enum:
            - QUEUED
            - SENT
            - FAILED
        text:
          type: string
        caption:
          type: string
        recipientsMode:
          type: string
          enum:
            - explicit
            - privacy
          description: >-
            `explicit` cuando enviaste `recipients`, `privacy` en caso
            contrario.
        recipientCount:
          type: integer
          description: Cantidad de destinatarios (0 = solo tus propios dispositivos).
        recipients:
          type:
            - array
            - 'null'
          items:
            type: string
        redacted:
          type: boolean
        createdAt:
          type: string
          format: date-time
        sentAt:
          type:
            - string
            - 'null'
          format: date-time
        revokedAt:
          type:
            - string
            - 'null'
          format: date-time
        errorMessage:
          type:
            - string
            - 'null'
          description: >-
            Motivo público de una story `FAILED`, como texto en inglés y
            portugués separados por ` | ` (mismas reglas que `errorMessage` en
            `GET /v1/messages/{id}`: sin detalles internos). `null` cuando la
            story no falló.
        errorCode:
          type:
            - string
            - 'null'
          description: >-
            Código de error legible por máquina, con la misma derivación que
            `errorCode` en `GET /v1/messages/{id}` (p. ej.,
            `MEDIA_DOWNLOAD_FAILED` cuando no se pudo descargar el contenido
            multimedia al publicar). `null` cuando la story no falló.
        deliverAt:
          type:
            - string
            - 'null'
          format: date-time
          description: Hora programada en UTC, o `null` cuando se publicó de inmediato.
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Tu API key ps_
    apiKeyId:
      type: apiKey
      in: header
      name: x-api-key-id
      description: Id de la API key (alternativa a x-api-key)

````

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