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

# Atribuição

> Desfechos e valor por dia, agente, método e faixa, sem nenhuma pessoa: determinístico e provável, separados.



## OpenAPI

````yaml openapi/pt/cell.json GET /v1/measure/attribution
openapi: 3.1.0
info:
  title: API de dados da Niadra
  version: '1'
  description: >-
    Escrita, contexto, histórico, objetos, identidade, privacidade e governança
    de um espaço. Cada espaço tem um endereço estável, com o espaço e a região
    no nome.
servers:
  - url: https://{space}.{region}.api.niadra.com
    variables:
      space:
        default: acme-prod
        description: O espaço, que vem na chave de fonte.
      region:
        default: us-east-2
        description: A região do espaço, que também vem na chave.
security: []
paths:
  /v1/measure/attribution:
    get:
      tags:
        - signals
      summary: Atribuição
      description: >-
        Desfechos e valor por dia, agente, método e faixa, sem nenhuma pessoa:
        determinístico e provável à parte.


        **Autenticação.** Token de pessoa do Console com o papel `analysis` (ou
        admin), ou chave de fonte com o escopo `admin`. Só responde num espaço
        com a funcionalidade `measurement` ligada (o documento `features`); num
        espaço sem ela, 404.
      operationId: attribution_v1_measure_attribution_get
      parameters:
        - in: query
          name: since
          required: true
          schema:
            format: date
            title: Since
            type: string
        - in: query
          name: until
          required: true
          schema:
            format: date
            title: Until
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AttributionReport'
          description: Resposta de sucesso.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: O pedido não bate com o contrato.
      security:
        - sourceKey: []
        - personToken: []
components:
  schemas:
    AttributionReport:
      additionalProperties: false
      description: >-
        Valor por dia, agente, método e faixa, determinístico e provável à
        parte; um valor nunca é multiplicado por uma confiança, e nenhum total
        soma um valor provável a um determinístico.
      properties:
        identity:
          $ref: '#/components/schemas/IdentityCalibration'
        rows:
          items:
            $ref: '#/components/schemas/AttributionRow'
          title: Rows
          type: array
        since:
          format: date
          title: Since
          type: string
        totals:
          items:
            $ref: '#/components/schemas/AttributionTotal'
          title: Totals
          type: array
        until:
          format: date
          title: Until
          type: string
      required:
        - since
        - until
        - rows
        - totals
        - identity
      title: AttributionReport
      type: object
    Problem:
      additionalProperties: false
      description: >-
        Detalhes do problema no formato da RFC 9457; `code` vem do catálogo de
        erros versionado.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
    IdentityCalibration:
      additionalProperties: false
      description: >-
        Com que frequência o método de identidade nomeia a exposição que o token
        da própria linha nomeia, nas linhas em que os dois existem: a confiança
        desse método neste espaço.
      properties:
        agreeing:
          title: Agreeing
          type: integer
        compared:
          title: Compared
          type: integer
        rate:
          anyOf:
            - type: number
            - type: 'null'
          title: Rate
      required:
        - agreeing
        - compared
      title: IdentityCalibration
      type: object
    AttributionRow:
      additionalProperties: false
      properties:
        agent:
          title: Agent
          type: string
        band:
          enum:
            - deterministic
            - probable
          title: Band
          type: string
        currency:
          title: Currency
          type: string
        day:
          format: date
          title: Day
          type: string
        finality:
          enum:
            - provisional
            - final
            - expired_without_outcome
          title: Finality
          type: string
        lines:
          title: Lines
          type: integer
        method:
          enum:
            - line
            - order
            - identity
            - assisted_handoff
          title: Method
          type: string
        outcome:
          maxLength: 256
          minLength: 1
          title: Outcome
          type: string
        outcomes:
          title: Outcomes
          type: integer
        value_minor:
          title: Value Minor
          type: integer
      required:
        - day
        - outcome
        - agent
        - method
        - band
        - finality
        - currency
        - outcomes
        - lines
        - value_minor
      title: AttributionRow
      type: object
    AttributionTotal:
      additionalProperties: false
      description: >-
        Um método, uma faixa e uma finalidade no período: determinístico e
        provável nunca se somam.
      properties:
        band:
          enum:
            - deterministic
            - probable
          title: Band
          type: string
        currency:
          title: Currency
          type: string
        finality:
          enum:
            - provisional
            - final
            - expired_without_outcome
          title: Finality
          type: string
        lines:
          title: Lines
          type: integer
        method:
          enum:
            - line
            - order
            - identity
            - assisted_handoff
          title: Method
          type: string
        outcome:
          maxLength: 256
          minLength: 1
          title: Outcome
          type: string
        outcomes:
          title: Outcomes
          type: integer
        value_minor:
          title: Value Minor
          type: integer
      required:
        - outcome
        - method
        - band
        - finality
        - currency
        - outcomes
        - lines
        - value_minor
      title: AttributionTotal
      type: object
  securitySchemes:
    sourceKey:
      type: http
      scheme: bearer
      description: nia_sk_...
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````