Admin API (Dashboard & Team) Entries & Batch
Search valid reference options for a field
/admin-api/v1/sites/{siteSlug}/collections/{postType}/fields/{fieldKey}/options Searches eligible target entries for a reference field, respecting the user's allowedPostTypes. Requires entry:read capability.
Authentication
- overtcms_access cookie
SessionCookieHttpOnly 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-originOriginheader for CSRF protection. - Bearer token
BearerJWTHuman Admin access JWT returned by login/setup/refresh/step-up. Agent API keys (
ocms_...) are rejected on the Admin Plane.
Path parameters
-
siteSlugstring requiredSite slug. -
postTypestring requiredCollection post type slug. -
fieldKeystring requiredReference field key.
Query parameters
-
qstringSearch query. -
targetstringRestrict to one target post type. -
limitintegerPage size limit.min 1, max 100
-
cursorstringOpaque cursor.
Responses
-
200 Reference options.
application/json
-
fieldstring requiredExample author
-
hasMoreboolean requiredExample false
-
itemsarray of ReferenceOption requiredShow 5 fields Hide
-
displayLabelstring requiredExample Ada Lovelace
-
idstring, uuid required -
postTypestring requiredExample authors
-
slugstring requiredExample ada-lovelace
-
statusstring requiredAllowed:
draftscheduledpublishedarchivedtrashedExample published
-
-
nextCursorstring -
suggestedOptionsarray of ReferenceOptionPopulated as empty-search rescue suggestions when a query returns 0 matches and totalEligible <= 50.Show 5 fields Hide
-
displayLabelstring requiredExample Ada Lovelace
-
idstring, uuid required -
postTypestring requiredExample authors
-
slugstring requiredExample ada-lovelace
-
statusstring requiredAllowed:
draftscheduledpublishedarchivedtrashedExample published
-
-
targetsarray of string required -
totalEligibleinteger, int64 requiredExample 12
-
-
401 Unauthenticated — missing or expired session cookie / JWT (API keys are rejected).
application/json
-
errorAPIError requiredCanonical error payload returned across all OvertCMS planes.Show 6 fields Hide
-
appliedboolean requiredAlways false on 4xx responses, guaranteeing the mutation was not applied.Example false
-
codestring requiredExample validation_error
-
detailsobject -
issuesarray of ValidationIssueShow 7 fields Hide
-
codestring requiredExample max_length
-
constraintobject -
fieldstringExample seoTitle
-
instructionstringExample Keep SEO titles under 60 characters for search snippet display.
-
labelstringExample SEO Title
-
messagestring requiredExample field must be at most 60 graphemes
-
searchEndpointstringExample /agent/v1/collections/posts/fields/author/options
-
-
messagestring requiredExample entry validation failed
-
retryableboolean requiredExample false
-
-
-
403 Forbidden — insufficient RBAC role capability, CSRF Origin mismatch, post-type restriction, or step-up MFA required.
application/json
-
errorAPIError requiredCanonical error payload returned across all OvertCMS planes.Show 6 fields Hide
-
appliedboolean requiredAlways false on 4xx responses, guaranteeing the mutation was not applied.Example false
-
codestring requiredExample validation_error
-
detailsobject -
issuesarray of ValidationIssueShow 7 fields Hide
-
codestring requiredExample max_length
-
constraintobject -
fieldstringExample seoTitle
-
instructionstringExample Keep SEO titles under 60 characters for search snippet display.
-
labelstringExample SEO Title
-
messagestring requiredExample field must be at most 60 graphemes
-
searchEndpointstringExample /agent/v1/collections/posts/fields/author/options
-
-
messagestring requiredExample entry validation failed
-
retryableboolean requiredExample false
-
-
-
404 Post type or field not found.
application/json
-
errorAPIError requiredCanonical error payload returned across all OvertCMS planes.Show 6 fields Hide
-
appliedboolean requiredAlways false on 4xx responses, guaranteeing the mutation was not applied.Example false
-
codestring requiredExample validation_error
-
detailsobject -
issuesarray of ValidationIssueShow 7 fields Hide
-
codestring requiredExample max_length
-
constraintobject -
fieldstringExample seoTitle
-
instructionstringExample Keep SEO titles under 60 characters for search snippet display.
-
labelstringExample SEO Title
-
messagestring requiredExample field must be at most 60 graphemes
-
searchEndpointstringExample /agent/v1/collections/posts/fields/author/options
-
-
messagestring requiredExample entry validation failed
-
retryableboolean requiredExample false
-
-