Skip to content
OvertCMS Docs

Admin API (Dashboard & Team) Schema & Components

List reusable components

GET /admin-api/v1/sites/{siteSlug}/components

Lists all reusable components defined on {siteSlug}. Requires schema:read capability.

Authentication

  • overtcms_access cookie SessionCookie

    HttpOnly SameSite=Lax access token cookie issued by login/setup/refresh. State-changing requests (POST, PATCH, PUT, DELETE) authenticated via cookie must also send a matching same-origin Origin header for CSRF protection.

  • Bearer token BearerJWT

    Human Admin access JWT returned by login/setup/refresh/step-up. Agent API keys (ocms_...) are rejected on the Admin Plane.

Path parameters

  • siteSlug string required
    Site slug.

Responses

  • 200 Component list.

    application/json

    • components array of Component required
      Show 11 fields
      • aiWritable boolean

        Example true

      • createdAt string, date-time required
      • fields array of FieldDefinition required
        Show 21 fields
        • aiWritable boolean

          Default true

        • constraints FieldConstraints
          Typed validation and structural constraints covering all 19 canonical OvertCMS field types.
          Show 51 fields
          • allowChecklists boolean
          • allowCustom boolean
          • allowEmbeds boolean
          • allowInlineMedia boolean
          • allowRelative boolean
          • allowedBlocks array of any
          • allowedComponents array of any
          • allowedHosts array of any
          • allowedMarks array of any
          • allowedMimeTypes array of any
          • allowedSchemes array of any
          • aspectRatio string

            Example 16:9

          • componentRef string
          • disallowH1 boolean
          • disallowHtml boolean
          • fields array of any
          • format string

            Allowed: plainemailcolor

            Default plain

          • integer boolean
          • integrity string

            Allowed: strongweak

            Default strong

          • jsonSchema object
          • lengthUnit string

            Allowed: graphemesutf16

            Default graphemes

          • max number
          • maxBytes integer, int64

            min 1

          • maxDate string, date
          • maxDateTime string, date-time
          • maxDurationMs integer, int64

            min 1

          • maxItems integer

            min 1

          • maxLength integer

            min 1

          • maxLines integer

            min 1

          • maxTime string

            Example 17:00:00

          • maxWords integer

            min 1

          • min number
          • minDate string, date
          • minDateTime string, date-time
          • minHeight integer

            min 1

          • minItems integer

            min 0

          • minLength integer

            min 0

          • minTime string

            Example 09:00:00

          • minWidth integer

            min 1

          • minWords integer

            min 0

          • multiple boolean
          • of ListItemSpec
            Element schema of a list field.
          • options array of any
          • pattern string
          • precision integer

            min 0

          • requireAlt boolean
          • step number
          • strictness string

            Allowed: strictsanitize

            Default strict

          • targets array of any
          • trim boolean
          • uniqueItems boolean
        • defaultValue any
        • deprecated boolean

          Default false

        • description string

          max length 500

        • fieldId string, uuid
          Immutable UUIDv7 assigned by the server.
        • filterable boolean

          Default false

        • instruction string

          max length 2000, Example Concise, punchy headline under 80 characters.

        • key string required

          Example title

        • label string required

          Example Title

        • localized boolean

          Default false

        • readOnly boolean

          Default false

        • replacedBy string
        • required boolean

          Example true

        • requiredOn string

          Allowed: draftpublish

          Default publish

        • searchEndpoint string read only
          Populated automatically on reference fields.

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

        • sortable boolean

          Default false

        • type string required

          Allowed: stringtextslugrich_htmlnumberbooleandatedatetimetimeurlselectreferenceimageaudiovideofileobjectlistjson

          Example string

        • ui FieldUI
          Cosmetic authoring UI hints (excluded from schema fingerprints).
          Show 4 fields
          • group string

            Example SEO

          • order integer

            Example 10

          • placeholder string

            Example Write a concise headline...

          • width string

            Example full

        • unique boolean

          Default false

        • writable boolean

          Default true

      • id string, uuid required
      • instruction string

        Example Use for notes, warnings, and tips inside article bodies.

      • label string required

        Example Callout Box

      • schemaFingerprint string required

        Example sha256:9b74c9897bac770ffc029102a200c5de

      • schemaVersion integer required

        Example 1

      • siteId string, uuid required
      • slug string required

        Example callout

      • updatedAt string, date-time required
  • 401 Unauthenticated — missing or expired session cookie / JWT (API keys 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 Forbidden — insufficient RBAC role capability, CSRF Origin mismatch, post-type restriction, or step-up MFA required.

    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