Skip to content
OvertCMS Docs

Agent API (AI & Automation) Entries & Batch

List entries in a collection

GET /agent/v1/collections/{postType}/entries

Returns a keyset-paginated list of entries across draft/scheduled/published/archived states. Requires entries:read scope.

Authentication

  • Bearer token BearerApiKey

    Scoped Agent API key (Authorization: Bearer ocms_...). Human JWTs and browser cookies are rejected on the Agent Plane.

Path parameters

  • postType string required
    Collection post type slug.

Query parameters

  • status string
    Comma-separated lifecycle status filter (draft, scheduled, published, archived, trashed).
  • includeTrashed boolean
    Include trashed entries when true.

    Default false

  • locale string
    Filter by locale code.
  • q string
    Accent/case-folded search query matching display label, search key, or slug.
  • sort string
    Sort field with optional leading - (defaults to -createdAt).
  • limit integer
    Page size limit.

    min 1, max 100

  • cursor string
    Opaque keyset pagination cursor.
  • filter map of map of string
    Dynamic filter predicates using filter[field][op]=value (or filter[field]=value for eq). Operators: eq, in, contains, gte, lte. Supports system fields (status, locale, slug, publishedAt, createdAt, updatedAt) and filterable: true schema fields.

Headers

  • If-Schema-Fingerprint string
    Optional precondition header with the caller's cached schema fingerprint. Exact match proceeds silently; non-breaking capability gain proceeds with X-Schema-Warning; breaking drift returns 409 schema_drift_detected.

Responses

  • 200 Paginated list of entries.

    application/json

    • entries array of Entry required
      Show 25 fields
      • createdAt string, date-time required
      • createdBy Actor required
        Identifies the human user, API key, MCP client, or system process that initiated an action.
        Show 3 fields
        • id string required

          Example 0195c0a1-7e20-7000-8000-000000000042

        • kind string required

          Allowed: userapi_keymcpsystem

          Example api_key

        • name string required

          Example Content Automation Bot

      • displayLabel string required

        Example Introducing OvertCMS

      • draftData object required
      • etag string required

        Example sha256:9f86d081884c7d659a2feaa0c55ad015

      • id string, uuid required

        Example 0195c0a1-7e20-7000-8000-000000000099

      • labelKey string required

        Example introducing overtcms

      • locale string required

        Example en

      • postTypeId string, uuid required
      • postTypeSlug string required

        Example posts

      • publicUrl string required

        Example https://example.com/blog/introducing-overtcms

      • publishedAt string, date-time nullable
      • publishedData object
      • scheduledAt string, date-time nullable
      • schemaVersionAtWrite integer required

        Example 2

      • searchKey string required

        Example introducing overtcms

      • siteId string, uuid required
      • slug string required

        Example introducing-overtcms

      • status string required

        Allowed: draftscheduledpublishedarchivedtrashed

        Example draft

      • translationGroupId string
      • trashedAt string, date-time nullable
      • unpublishAt string, date-time nullable
      • updatedAt string, date-time required
      • updatedBy Actor required
        Identifies the human user, API key, MCP client, or system process that initiated an action.
        Show 3 fields
        • id string required

          Example 0195c0a1-7e20-7000-8000-000000000042

        • kind string required

          Allowed: userapi_keymcpsystem

          Example api_key

        • name string required

          Example Content Automation Bot

      • version integer required

        min 1, Example 3

    • hasMore boolean required

      Example false

    • nextCursor string
  • 400 Invalid filter, sort, or cursor.

    application/json

    • error APIError required
      Canonical error payload returned across all OvertCMS planes.
      Show 6 fields
      • applied boolean required
        Always false on 4xx responses, guaranteeing the mutation was not applied.

        Example false

      • code string required

        Example validation_error

      • details object
      • issues array of ValidationIssue
        Show 7 fields
        • code string required

          Example max_length

        • constraint object
        • field string

          Example seoTitle

        • instruction string

          Example Keep SEO titles under 60 characters for search snippet display.

        • label string

          Example SEO Title

        • message string required

          Example field must be at most 60 graphemes

        • searchEndpoint string

          Example /agent/v1/collections/posts/fields/author/options

      • message string required

        Example entry validation failed

      • retryable boolean required

        Example false

  • 401 Missing, invalid, expired, or revoked Agent API key (cookies and human JWTs are rejected).

    application/json

    • error APIError required
      Canonical error payload returned across all OvertCMS planes.
      Show 6 fields
      • applied boolean required
        Always false on 4xx responses, guaranteeing the mutation was not applied.

        Example false

      • code string required

        Example validation_error

      • details object
      • issues array of ValidationIssue
        Show 7 fields
        • code string required

          Example max_length

        • constraint object
        • field string

          Example seoTitle

        • instruction string

          Example Keep SEO titles under 60 characters for search snippet display.

        • label string

          Example SEO Title

        • message string required

          Example field must be at most 60 graphemes

        • searchEndpoint string

          Example /agent/v1/collections/posts/fields/author/options

      • message string required

        Example entry validation failed

      • retryable boolean required

        Example false

  • 403 API key lacks required scope, post-type access, or IP allowlist match.

    application/json

    • error APIError required
      Canonical error payload returned across all OvertCMS planes.
      Show 6 fields
      • applied boolean required
        Always false on 4xx responses, guaranteeing the mutation was not applied.

        Example false

      • code string required

        Example validation_error

      • details object
      • issues array of ValidationIssue
        Show 7 fields
        • code string required

          Example max_length

        • constraint object
        • field string

          Example seoTitle

        • instruction string

          Example Keep SEO titles under 60 characters for search snippet display.

        • label string

          Example SEO Title

        • message string required

          Example field must be at most 60 graphemes

        • searchEndpoint string

          Example /agent/v1/collections/posts/fields/author/options

      • message string required

        Example entry validation failed

      • retryable boolean required

        Example false

  • 404 Post type not found.

    application/json

    • error APIError required
      Canonical error payload returned across all OvertCMS planes.
      Show 6 fields
      • applied boolean required
        Always false on 4xx responses, guaranteeing the mutation was not applied.

        Example false

      • code string required

        Example validation_error

      • details object
      • issues array of ValidationIssue
        Show 7 fields
        • code string required

          Example max_length

        • constraint object
        • field string

          Example seoTitle

        • instruction string

          Example Keep SEO titles under 60 characters for search snippet display.

        • label string

          Example SEO Title

        • message string required

          Example field must be at most 60 graphemes

        • searchEndpoint string

          Example /agent/v1/collections/posts/fields/author/options

      • message string required

        Example entry validation failed

      • retryable boolean required

        Example false

  • 409 Breaking schema drift detected via If-Schema-Fingerprint.

    application/json

    • error APIError required
      Canonical error payload returned across all OvertCMS planes.
      Show 6 fields
      • applied boolean required
        Always false on 4xx responses, guaranteeing the mutation was not applied.

        Example false

      • code string required

        Example validation_error

      • details object
      • issues array of ValidationIssue
        Show 7 fields
        • code string required

          Example max_length

        • constraint object
        • field string

          Example seoTitle

        • instruction string

          Example Keep SEO titles under 60 characters for search snippet display.

        • label string

          Example SEO Title

        • message string required

          Example field must be at most 60 graphemes

        • searchEndpoint string

          Example /agent/v1/collections/posts/fields/author/options

      • message string required

        Example entry validation failed

      • retryable boolean required

        Example false

  • 429 Per-key RPM rate limit, daily write cap, or daily media byte quota exceeded.

    application/json

    • error APIError required
      Canonical error payload returned across all OvertCMS planes.
      Show 6 fields
      • applied boolean required
        Always false on 4xx responses, guaranteeing the mutation was not applied.

        Example false

      • code string required

        Example validation_error

      • details object
      • issues array of ValidationIssue
        Show 7 fields
        • code string required

          Example max_length

        • constraint object
        • field string

          Example seoTitle

        • instruction string

          Example Keep SEO titles under 60 characters for search snippet display.

        • label string

          Example SEO Title

        • message string required

          Example field must be at most 60 graphemes

        • searchEndpoint string

          Example /agent/v1/collections/posts/fields/author/options

      • message string required

        Example entry validation failed

      • retryable boolean required

        Example false

Documentation

Start here