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

# Get Subscription

> Retorna informações sobre as assinaturas disponíveis.



## OpenAPI

````yaml GET /subscription
openapi: 3.1.0
info:
  title: Muffins AI API
  description: >-
    API oficial da Muffins AI, oferecendo ferramentas avançadas de inteligência
    artificial para integração com seus sistemas.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://chat.muffinscorp.com/api/public
security:
  - apiKeyAuth: []
paths:
  /subscription:
    get:
      description: Retorna informações sobre as assinaturas disponíveis.
      responses:
        '200':
          description: Lista de assinaturas retornada com sucesso.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Subscription'
        '400':
          description: Erro na solicitação.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Não autorizado - API key inválida ou faltando.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Subscription:
      type: object
      properties:
        id:
          description: Identificador único da assinatura.
          type: string
        name:
          description: Nome da assinatura.
          type: string
        features:
          description: Lista de features incluídas na assinatura.
          type: array
          items:
            type: string
        price:
          description: Preço mensal da assinatura.
          type: number
    Error:
      type: object
      required:
        - error
        - code
        - success
      properties:
        error:
          description: Descrição legível do erro.
          type: string
          example: Invalid API Key
        code:
          description: Código de erro padrão para tratamento programático.
          type: string
          enum:
            - AUTH_FAILED
            - INVALID_INPUT
            - RATE_LIMITED
            - SERVER_ERROR
          example: AUTH_FAILED
        message:
          description: Mensagem detalhada do erro (opcional).
          type: string
        traceId:
          description: ID único para rastreamento do erro no servidor.
          type: string
          format: uuid
        success:
          description: Indica se a requisição foi bem sucedida (sempre false para erros).
          type: boolean
          enum:
            - false
        details:
          description: Informações técnicas adicionais para depuração.
          type: string
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      name: x-api-key
      in: header
      description: API key for authentication

````