Pages
Create, version, launch, and render DB-backed pages — build interactive dashboards and static artifacts served by the swarm
Response Body
application/json
curl -X DELETE "http://localhost:3013/@swarm/api/{path}"{
"error": "string",
"property1": null,
"property2": null
}Response Body
application/json
application/json
curl -X GET "http://localhost:3013/@swarm/api/{path}"{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}Response Body
application/json
curl -X PATCH "http://localhost:3013/@swarm/api/{path}"{
"error": "string",
"property1": null,
"property2": null
}Response Body
application/json
curl -X POST "http://localhost:3013/@swarm/api/{path}"{
"error": "string",
"property1": null,
"property2": null
}Response Body
application/json
curl -X PUT "http://localhost:3013/@swarm/api/{path}"{
"error": "string",
"property1": null,
"property2": null
}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
1 <= lengthNon-unique asset directory namespace (for example shared/ or personal//drafts/). Runtime write boundaries normalize and validate the canonical form.
1 <= length <= 255Non-unique asset directory namespace (for example shared/ or personal//drafts/). Runtime write boundaries normalize and validate the canonical form.
1 <= length <= 2551 <= value <= 5000 <= value"full" | "slim"Response Body
application/json
curl -X GET "http://localhost:3013/api/pages"{
"pages": [
{
"id": "string",
"key": "string",
"agentId": "string",
"slug": "string",
"title": "string",
"description": "string",
"contentType": "text/html",
"authMode": "public",
"passwordHash": "string",
"body": "string",
"needsCredentials": [
"string"
],
"viewCount": 0,
"createdAt": "string",
"updatedAt": "string",
"favorite": true,
"api_url": "string",
"app_url": "string"
}
],
"total": 0,
"limit": 0,
"offset": 0
}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "http://localhost:3013/api/pages" \ -H "Content-Type: application/json" \ -d '{ "title": "string", "contentType": "text/html", "body": "string" }'{
"id": "string",
"key": "string",
"version": 1,
"api_url": "string",
"app_url": "string"
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Response Body
application/json
curl -X DELETE "http://localhost:3013/api/pages/string"{
"error": "string",
"property1": null,
"property2": null
}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Response Body
application/json
application/json
curl -X GET "http://localhost:3013/api/pages/string"{
"id": "string",
"key": "string",
"agentId": "string",
"slug": "string",
"title": "string",
"description": "string",
"contentType": "text/html",
"authMode": "public",
"passwordHash": "string",
"body": "string",
"needsCredentials": [
"string"
],
"viewCount": 0,
"createdAt": "string",
"updatedAt": "string",
"favorite": true,
"api_url": "string",
"app_url": "string"
}{
"error": "string",
"property1": null,
"property2": null
}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X PUT "http://localhost:3013/api/pages/string" \ -H "Content-Type: application/json" \ -d '{}'{
"id": "string",
"key": "string",
"version": 1
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Response Body
application/json
application/json
curl -X POST "http://localhost:3013/api/pages/string/launch"{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
Response Body
application/json
application/json
curl -X GET "http://localhost:3013/api/pages/string/versions"{
"versions": [
{
"id": "string",
"pageId": "string",
"version": 1,
"snapshot": {
"title": "string",
"description": "string",
"contentType": "text/html",
"authMode": "public",
"passwordHash": "string",
"body": "string",
"needsCredentials": [
"string"
]
},
"changedByAgentId": "string",
"createdAt": "string"
}
]
}{
"error": "string",
"property1": null,
"property2": null
}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Path Parameters
1 <= valueResponse Body
application/json
application/json
curl -X GET "http://localhost:3013/api/pages/string/versions/1"{
"id": "string",
"pageId": "string",
"version": 1,
"snapshot": {
"title": "string",
"description": "string",
"contentType": "text/html",
"authMode": "public",
"passwordHash": "string",
"body": "string",
"needsCredentials": [
"string"
]
},
"changedByAgentId": "string",
"createdAt": "string"
}{
"error": "string",
"property1": null,
"property2": null
}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Response Body
application/json
curl -X GET "http://localhost:3013/api/pages/actions"{
"actions": [
{
"name": "string",
"description": "string",
"params": {
"property1": null,
"property2": null
},
"sdkMethods": [
"string"
]
}
]
}Authorization
bearerAuth API key via Authorization: Bearer <API_KEY>
In: header
Query Parameters
1 <= length1 <= lengthResponse Body
application/json
application/json
curl -X GET "http://localhost:3013/api/pages/resolve?slug=string"{
"id": "string",
"key": "string",
"agentId": "string",
"slug": "string",
"title": "string",
"description": "string",
"contentType": "text/html",
"authMode": "public",
"passwordHash": "string",
"body": "string",
"needsCredentials": [
"string"
],
"viewCount": 0,
"createdAt": "string",
"updatedAt": "string",
"favorite": true,
"api_url": "string",
"app_url": "string"
}{
"error": "string",
"property1": null,
"property2": null
}curl -X GET "http://localhost:3013/p/string"{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}Path Parameters
Response Body
application/json
application/json
application/json
application/json
curl -X GET "http://localhost:3013/p/string.json"{
"id": "string",
"title": "string",
"description": "string",
"contentType": "text/html",
"authMode": "public",
"body": "string",
"version": 1
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}{
"error": "string",
"property1": null,
"property2": null
}