API

Agentix API endpoints

Documented Agentix API routes, parameters, and response examples.

Available endpoints

List collections

GET /api/public/v1/collections. Lists every collection available to the site identified by the API key.

json
{
  "collections": [
    {
      "name": "Posts",
      "slug": "posts",
      "fields": [
        {
          "key": "title",
          "type": "text",
          "required": true
        }
      ],
      "is_system": false
    }
  ]
}

List collection items

GET /api/public/v1/collections/{collection_slug}. Lists items in one collection, including drafts, with offset pagination.

ParameterLocationRequiredDescription
collection_slugpathYesThe collection API slug.
limitqueryNoItems to return, from 1 to 1000.
offsetqueryNoItems to skip.
json
{
  "collection": {
    "name": "Posts",
    "slug": "posts",
    "fields": [
      {
        "key": "title",
        "type": "text",
        "required": true
      }
    ],
    "is_system": false
  },
  "items": [
    {
      "id": "00000000-0000-4000-8000-000000000001",
      "title": "Welcome",
      "is_published": true,
      "created_at": "2026-10-01T12:00:00Z",
      "updated_at": "2026-10-01T12:00:00Z"
    }
  ],
  "limit": 100,
  "offset": 0
}

Get collection item

GET /api/public/v1/collections/{collection_slug}/{item_id}. Returns one collection item by UUID.

ParameterLocationRequiredDescription
collection_slugpathYesThe collection API slug.
item_idpathYesThe UUID of the collection item.
json
{
  "item": {
    "id": "00000000-0000-4000-8000-000000000001",
    "title": "Welcome",
    "is_published": true,
    "created_at": "2026-10-01T12:00:00Z",
    "updated_at": "2026-10-01T12:00:00Z"
  }
}

Write endpoints

Create collection item

POST /api/public/v1/collections/{collection_slug}. Creates an item in a non-system collection.

ParameterLocationRequiredDescription
collection_slugpathYesThe collection API slug.
databodyYesA JSON object containing fields defined by the collection.
is_publishedbodyNoWhether the item is publicly published.
json
{
  "item": {
    "id": "00000000-0000-4000-8000-000000000001",
    "title": "Welcome",
    "is_published": true,
    "created_at": "2026-10-01T12:00:00Z",
    "updated_at": "2026-10-01T12:00:00Z"
  }
}

Update collection item

PATCH /api/public/v1/collections/{collection_slug}/{item_id}. Merges fields into an existing item in a non-system collection.

ParameterLocationRequiredDescription
collection_slugpathYesThe collection API slug.
item_idpathYesThe UUID of the collection item.
databodyYesA JSON object containing fields defined by the collection.
is_publishedbodyNoWhether the item is publicly published.
json
{
  "item": {
    "id": "00000000-0000-4000-8000-000000000001",
    "title": "Welcome",
    "is_published": true,
    "created_at": "2026-10-01T12:00:00Z",
    "updated_at": "2026-10-01T12:00:00Z"
  }
}

Delete collection item

DELETE /api/public/v1/collections/{collection_slug}/{item_id}. Deletes an item from a non-system collection.

ParameterLocationRequiredDescription
collection_slugpathYesThe collection API slug.
item_idpathYesThe UUID of the collection item.
json
{
  "ok": true
}

Was this page helpful?