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

# Get Period Artifact

> Returns the full merkle artifact (root, leaves, proofs, totals) for a published YieldDistributor period. Public — no authentication required. Anyone can fetch this to independently verify what's committed on-chain.



## OpenAPI

````yaml /api-reference/openapi.json get /yield/artifacts
openapi: 3.1.0
info:
  title: Camino Treasury API
  description: >-
    API for managing treasury wallets, tracking transfers (on-chain and fiat) in
    a unified feed, depositing into C0, withdrawing to wallets, and claiming
    yield distributions.
  version: 1.0.0
servers:
  - url: https://api.caminotreasury.com/v1
security:
  - apiKeyAuth: []
paths:
  /yield/artifacts:
    get:
      tags:
        - Yield
      summary: Get Period Artifact
      description: >-
        Returns the full merkle artifact (root, leaves, proofs, totals) for a
        published YieldDistributor period. Public — no authentication required.
        Anyone can fetch this to independently verify what's committed on-chain.
      operationId: getDistributorArtifact
      parameters:
        - name: periodId
          in: query
          required: true
          description: Period ID (uint).
          schema:
            type: string
            pattern: ^\d+$
        - name: chainId
          in: query
          required: false
          description: >-
            Restrict to a single chain. Defaults to the server's primary
            configured chain.
          schema:
            type: integer
            minimum: 1
      responses:
        '200':
          description: Full artifact for the period.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArtifactResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
      security: []
components:
  schemas:
    ArtifactResponse:
      type: object
      required:
        - version
        - periodId
        - blockRange
        - root
        - leaves
      properties:
        version:
          type: string
        periodId:
          type: string
        blockRange:
          type: object
          properties:
            startBlock:
              type: string
            endBlock:
              type: string
        periodAccrual:
          type: string
        totalAmount:
          type: string
        feeRetained:
          type: string
        manualTotalAmount:
          type: boolean
        totalAllocated:
          type: string
        dust:
          type: string
        totalBalanceBlocks:
          type: string
        root:
          type: string
        exclusionListHash:
          type: string
        exclusionList:
          type: object
        leaves:
          type: array
          items:
            type: object
            required:
              - index
              - account
              - amount
              - proof
            properties:
              index:
                type: integer
              account:
                type: string
              amount:
                type: string
              proof:
                type: array
                items:
                  type: string
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Error message
        details:
          type: object
          description: Optional validation details
  responses:
    BadRequest:
      description: Bad Request - Invalid input
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Not Found - Resource does not exist
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: Too Many Requests - Rate limit exceeded. Check the `Retry-After` header.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: API key for authentication. Pass your key in the `x-api-key` header.

````