Pages API
Sync and manage page content
Batch Sync Pages
Sync multiple pages at once:
POST /api/projects/{projectId}/pages/batch
Request Body:
[
{
"url": "https://example.com/page1",
"content": "Page content...",
"title": "Page 1",
"statusCode": 200
},
{
"url": "https://example.com/page2",
"content": "Page content...",
"title": "Page 2",
"statusCode": 200
}
]
Response:
{
"data": {
"synced": 2,
"failed": 0
}
}
List Pages
List all pages for a project:
GET /api/projects/{projectId}/pages
Query Parameters:
limit- Number of results (default: 50)offset- Pagination offset (default: 0)
Response:
{
"data": [
{
"id": "page_123",
"url": "https://example.com/page1",
"title": "Page 1",
"statusCode": 200,
"lastSyncedAt": "2024-01-01T00:00:00Z"
}
]
}
Get Page
Get a specific page:
GET /api/projects/{projectId}/pages/{pageId}
Response:
{
"data": {
"id": "page_123",
"url": "https://example.com/page1",
"title": "Page 1",
"content": "Page content...",
"statusCode": 200,
"lastSyncedAt": "2024-01-01T00:00:00Z"
}
}