> ## 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.

# Consultar permissão de chamada

> Consulta se o negócio pode ligar para ?to=<phone>: status da permissão (no_permission | temporary | permanent, com expiration_time) e limites por ação (send_call_permission_request / start_call). Obrigatório antes de um BIC.

**Requer uma chave com escopo de número.**



## OpenAPI

````yaml openapi.pt.json GET /v1/calls/permissions
openapi: 3.1.0
info:
  title: API Pilot Status
  version: 1.0.0
  license:
    name: Pilot Status Terms of Service
    url: https://pilotstatus.com.br/terms
  description: >-
    API REST pública do Pilot Status. Autentique com o header `x-api-key:
    ps_...` (ou `x-api-key-id`). Base URL: https://pilotstatus.com.br
servers:
  - url: https://pilotstatus.com.br
security:
  - apiKey: []
  - apiKeyId: []
paths:
  /v1/calls/permissions:
    get:
      tags:
        - Calls
      summary: Consultar permissão de chamada
      description: >-
        Consulta se o negócio pode ligar para ?to=<phone>: status da permissão
        (no_permission | temporary | permanent, com expiration_time) e limites
        por ação (send_call_permission_request / start_call). Obrigatório antes
        de um BIC.


        **Requer uma chave com escopo de número.**
      operationId: get_calls_permissions
      parameters:
        - name: to
          in: query
          required: true
          description: Telefone do usuário a consultar.
          schema:
            type: string
            description: (string (E.164))
          example: '+5511999999999'
      responses:
        '200':
          description: Consultar permissão
          content:
            application/json:
              example:
                permission:
                  status: temporary
                  expiration_time: 1768550400
                actions:
                  - action_name: start_call
                    can_perform_action: true
                    limits:
                      - time_period: PT24H
                        max_allowed: 1
                        current_usage: 0
        '400':
          description: Payload ou parâmetros inválidos
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Validation error
        '401':
          description: Header `x-api-key` / `x-api-key-id` ausente ou inválido
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Unauthorized
        '403':
          description: Chave com escopo de tenant usada em endpoint com escopo de número
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Tenant-scoped keys cannot call number endpoints
                code: TENANT_SCOPE_NOT_ALLOWED
        '429':
          description: Limite de taxa excedido
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Too many requests
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Sua chave de API ps_
    apiKeyId:
      type: apiKey
      in: header
      name: x-api-key-id
      description: Id da chave de API (alternativa ao x-api-key)

````