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

# Status da API

> Retorna o status da API e informacoes sobre a API key utilizada. Use este endpoint para verificar se sua chave esta valida e a API esta operacional.



## OpenAPI

````yaml GET /api/status
openapi: 3.1.0
info:
  title: Talk AI API
  version: 1.0.0
  description: >-
    API publica do Talk AI para integracao de RAG e inteligencia artificial com
    sistemas externos.
servers:
  - url: https://api-talk.saninternet.com/v1
    description: Producao
security:
  - bearerAuth: []
paths:
  /api/status:
    get:
      tags:
        - Status
      summary: Status da API
      description: >-
        Retorna o status da API e informacoes sobre a API key utilizada. Use
        este endpoint para verificar se sua chave esta valida e a API esta
        operacional.
      operationId: getApiStatus
      responses:
        '200':
          description: API operacional
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: ok
                  timestamp:
                    type: string
                    format: date-time
                    example: '2026-01-12T10:30:00.000Z'
                  apiKey:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                        example: 123e4567-e89b-12d3-a456-426614174000
                      name:
                        type: string
                        example: Production API Key
                      companyId:
                        type: string
                        format: uuid
                        example: 123e4567-e89b-12d3-a456-426614174000
                      maskedToken:
                        type: string
                        example: pyp_live_************abc123
        '401':
          description: API key ausente ou invalida
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                statusCode: 401
                error: Unauthorized
                message: Invalid or expired API key
        '403':
          description: Assinatura inativa
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionError'
components:
  schemas:
    Error:
      type: object
      properties:
        statusCode:
          type: integer
          example: 401
        error:
          type: string
          example: Unauthorized
        message:
          type: string
          example: Invalid or expired API key
    SubscriptionError:
      type: object
      properties:
        statusCode:
          type: integer
          example: 403
        error:
          type: string
          example: SubscriptionInactive
        message:
          type: string
          example: Sua assinatura nao esta ativa
        subscriptionStatus:
          type: string
          nullable: true
          example: CANCELLED
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key no formato `pyp_live_*`. Enviada como Bearer token no header
        Authorization.

````