Collections API
Manage your data collections via REST API.
List Documents
GET /api/v1/projects/{projectId}/data/{collection}
Response:
{
"success": true,
"data": {
"documents": [...],
"nextPageToken": "abc123",
"hasMore": true
}
}Get Document
GET /api/v1/projects/{projectId}/data/{collection}/{id}
Response:
{
"success": true,
"data": {
"id": "uuid",
"name": "John",
"created_at": "2024-01-01T00:00:00Z"
}
}Create Document
POST /api/v1/projects/{projectId}/data/{collection}
Content-Type: application/json
{ "name": "John", "email": "john@example.com" }
Response:
{
"success": true,
"data": { "id": "new-uuid", ... }
}Update Document
PUT /api/v1/projects/{projectId}/data/{collection}/{id}
Content-Type: application/json
{ "name": "John Updated" }Delete Document
DELETE /api/v1/projects/{projectId}/data/{collection}/{id}