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

# ListDeclarationsAPI mirrors erdo_list_declarations.




## OpenAPI

````yaml /api/openapi.json get /v1/declarations
openapi: 3.0.0
info:
  title: Erdo API
  description: >-
    Erdo's REST API: query and write datasets, run agents, manage threads,
    integrations, pages, evals, workstreams, experiments, and bounded outreach.
    Authenticate with a Bearer API key (erdo_api_...) or scoped token
    (erdo_token_...).
  version: '2026-11-21'
servers:
  - url: https://api.erdo.ai
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/declarations:
    get:
      summary: |
        ListDeclarationsAPI mirrors erdo_list_declarations.
      operationId: GET:mcp.ListDeclarationsAPI
      parameters:
        - allowEmptyValue: true
          explode: true
          in: query
          name: namespace
          required: false
          schema:
            type: string
          style: form
        - allowEmptyValue: true
          explode: true
          in: query
          name: kind
          required: false
          schema:
            type: string
          style: form
        - allowEmptyValue: true
          explode: true
          in: query
          name: key
          required: false
          schema:
            type: string
          style: form
        - allowEmptyValue: true
          explode: true
          in: query
          name: source
          required: false
          schema:
            type: string
          style: form
        - allowEmptyValue: true
          explode: true
          in: query
          name: table
          required: false
          schema:
            type: string
          style: form
        - allowEmptyValue: true
          explode: true
          in: query
          name: limit
          required: false
          schema:
            format: int32
            maximum: 2147483647
            minimum: -2147483648
            type: integer
          style: form
        - allowEmptyValue: true
          explode: true
          in: query
          name: offset
          required: false
          schema:
            format: int32
            maximum: 2147483647
            minimum: -2147483648
            type: integer
          style: form
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  declarations:
                    items:
                      $ref: '#/components/schemas/knowledge.DeclarationListItem'
                    type: array
                  next_offset:
                    format: int32
                    maximum: 2147483647
                    minimum: -2147483648
                    type: integer
                type: object
          description: Success response
        default:
          $ref: '#/components/responses/APIError'
components:
  schemas:
    knowledge.DeclarationListItem:
      properties:
        confidence:
          type: string
        created:
          type: boolean
        id:
          type: string
        key:
          type: string
        kind:
          type: string
        meaning:
          type: string
        namespace:
          type: string
        reasoning:
          type: string
        resolution:
          $ref: '#/components/schemas/semantics.Resolution'
        scope:
          $ref: '#/components/schemas/knowledge.DeclarationScope'
        status:
          type: string
      title: |
        DeclarationListItem is a stored declaration with how it resolves.
      type: object
    semantics.Resolution:
      description: >
        There is no numeric field: an unknown declaration is not a count of
        zero.
      properties:
        key:
          type: string
        kind:
          type: string
        meaning:
          type: string
        namespace:
          type: string
        reason:
          type: string
        resolved:
          type: boolean
      title: >
        Resolution is a lookup. Resolved is false when nothing confirmed
        matches.
      type: object
    knowledge.DeclarationScope:
      properties:
        source:
          type: string
        table:
          type: string
      title: |
        DeclarationScope is the source and table a declaration was written for.
      type: object
  responses:
    APIError:
      content:
        application/json:
          schema:
            externalDocs:
              url: https://pkg.go.dev/encore.dev/beta/errs#Error
            properties:
              code:
                description: Error code
                example: not_found
                externalDocs:
                  url: https://pkg.go.dev/encore.dev/beta/errs#ErrCode
                type: string
              details:
                description: Error details
                type: object
              message:
                description: Error message
                type: string
            title: APIError
            type: object
      description: Error response
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.