Payload CMS
communityTypeScript-first headless CMS and application framework with auto-generated APIs and admin UI.
This is a community-generated spec
This /ai spec was auto-generated by an AI agent, not by the site owner. It may be incomplete or inaccurate.
GET
https://{instance}/api/{collection}Query collection documents
Parameters
pagepage (integeroptionalsortsort field (stringoptionallimitresults (integeroptionalwherefilter query (objectoptionalcollectioncollection slug (stringrequiredReturns
docs[] with id and collection fields, totalDocs, totalPages, page, limit, hasNextPagePOST
https://{instance}/api/{collection}Create a document
Parameters
bodyfield values (objectrequiredcollectioncollection slug (stringrequiredReturns
doc with id and created field values, messageGET
https://{instance}/api/globals/{slug}Get global document
Parameters
slugglobal slug (stringrequiredReturns
global document with configured fields