Authentication
Send your API key as a Bearer token. Keys are shown as placeholders only — this template never stores or transmits credentials.
Base URL
https://api.example.com/v1
Authentication
Authorization: Bearer <key>
curl https://api.example.com/v1/projects \
-H "Authorization: Bearer $SLK_API_KEY"Endpoints
/v1/projectsList projectsReturns every project in the workspace, newest first. Paginated with a cursor.
Parameters
| Name | Type | Description |
|---|---|---|
| limit | integer | Page size, 1–100. Default 20. |
| cursor | string | Cursor from the previous response. |
| status | string | Filter by live, draft, or paused. |
Response
{
"data": [
{
"id": "prj_8f2c",
"name": "Launch site",
"status": "live",
"created_at": "2026-11-12T09:24:00Z"
}
],
"next_cursor": "cur_19x"
}/v1/projectsCreate a projectCreates a project and returns the full object. Names must be unique per workspace.
Parameters
| Name | Type | Description |
|---|---|---|
| namerequired | string | Project name, 1–80 characters. |
| template | string | Starter template id. Defaults to blank. |
Request
{
"name": "Docs portal",
"template": "docs"
}Response
{
"id": "prj_a91d",
"name": "Docs portal",
"status": "draft",
"created_at": "2026-11-29T08:10:00Z"
}/v1/projects/:idRetrieve a projectReturns one project by id, including its latest deploy status and page count.
Parameters
| Name | Type | Description |
|---|---|---|
| idrequired | string | Project id, prefixed with prj_. |
Response
{
"id": "prj_8f2c",
"name": "Launch site",
"status": "live",
"pages": 20,
"deploy": { "state": "ready", "at": "2026-11-28T17:42:00Z" }
}/v1/projects/:idDelete a projectDeletes a project and its deploy history. This cannot be undone.
Parameters
| Name | Type | Description |
|---|---|---|
| idrequired | string | Project id to delete. |
Response
{
"deleted": true,
"id": "prj_8f2c"
}Error codes
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request | A field is missing or malformed. |
| 401 | unauthorized | The API key is missing or revoked. |
| 404 | not_found | No resource matches that id. |
| 429 | rate_limited | Too many requests in the current window. |
Rate limits
Limits are per workspace and reset on a rolling 60-second window. The demo numbers below are content, not enforcement.
| Plan | Requests | Burst |
|---|---|---|
| Starter | 60 / min | 10 |
| Growth | 600 / min | 60 |
| Scale | 6,000 / min | 300 |