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

# Obter retenção e repasse

> Override do evento ou padrão do hub



## OpenAPI

````yaml /openapi.json get /events/{event}/retention
openapi: 3.1.0
info:
  title: Eventor Management API v1
  version: 1.0.0
  description: >-
    Management API do Eventor (Fase 9) — configuração de evento ponta a ponta
    por agente/CLI. Autenticação: `Authorization: Bearer <api_key>` com escopo
    `manage`.


    Envelope de sucesso: `{data}` (item) e `{data,meta,links}` (coleção
    paginada).

    Envelope de erro: `{error,message,details}`.
servers:
  - url: http://localhost/api/v1
security:
  - bearerAuth: []
paths:
  /events/{event}/retention:
    get:
      tags:
        - Retention
      summary: Obter retenção e repasse
      description: Override do evento ou padrão do hub
      operationId: retention.show
      parameters:
        - name: event
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: >-
            `JsonResource`


            Sem política configurada: expõe o default global (100% pagamento +
            piso).
          content:
            application/json:
              schema:
                anyOf:
                  - type: object
                    properties:
                      data:
                        $ref: '#/components/schemas/JsonResource'
                    required:
                      - data
                  - type: object
                    properties:
                      data:
                        type: object
                        properties:
                          id:
                            type: 'null'
                          hub_id:
                            type: integer
                          event_id:
                            type: 'null'
                          scope:
                            type: string
                            const: default
                          status:
                            type: string
                            const: active
                          rules:
                            type: array
                            prefixItems:
                              - type: object
                                properties:
                                  id:
                                    type: 'null'
                                  percent:
                                    type: integer
                                    const: 100
                                  anchor:
                                    type: string
                                    const: payment
                                  offset_days:
                                    type:
                                      - object
                                      - 'null'
                                required:
                                  - id
                                  - percent
                                  - anchor
                                  - offset_days
                            minItems: 1
                            maxItems: 1
                            additionalItems: false
                        required:
                          - id
                          - hub_id
                          - event_id
                          - scope
                          - status
                          - rules
                    required:
                      - data
        '401':
          description: API key ausente ou inválida.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '403':
          description: A API key não tem o escopo `manage`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
        '404':
          description: Recurso não encontrado neste hub.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    JsonResource:
      type: string
      title: JsonResource
    ApiError:
      type: object
      properties:
        error:
          type: string
          description: >-
            Código machine-parseable (ex.: validation_failed, forbidden_scope,
            not_found).
        message:
          type: string
          description: Mensagem legível (português).
        details:
          type:
            - object
            - 'null'
          description: 'Detalhes opcionais (ex.: erros de validação por campo).'
          additionalProperties: {}
      required:
        - error
        - message
      title: ApiError
  securitySchemes:
    bearerAuth:
      type: http
      description: >-
        API key do hub com escopo `manage`. Header: `Authorization: Bearer
        <api_key>`.
      scheme: bearer

````