Directus
communityOpen-source headless CMS and data platform wrapping any SQL database with REST and GraphQL APIs.
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}/items/{collection}Get items from a collection
Parameters
sortsort fields (stringoptionallimitresults (integeroptionalfieldsfields to return (stringoptionalfilterfilter JSON (stringoptionalcollectioncollection name (stringrequiredReturns
data[] with id and collection-specific fieldsPOST
https://{instance}/items/{collection}Create an item
Parameters
bodyfield values (objectrequiredcollectioncollection name (stringrequiredReturns
data with id and created field valuesGET
https://{instance}/collectionsList collections
Returns
data[] with collection, schema, meta.icon, meta.note, fields[]