Skip to content

Get a Collection

Retrieves a single collection by its slug, including all field definitions.

GET /api/{projectId}/collections/{slug}

Request

Terminal window
curl https://your-domain.com/api/{projectId}/collections/posts \
-H "Authorization: Bearer YOUR_API_TOKEN"

Response

{
"uuid": "coll-uuid",
"name": "Posts",
"slug": "posts",
"description": "Blog articles",
"is_singleton": false,
"fields": [
{ "name": "Title", "slug": "title", "type": "text", "required": true, "order": 1 },
{ "name": "Body", "slug": "body", "type": "richtext", "required": false, "order": 2 }
]
}

Status codes

StatusDescription
200Success
404Collection not found