REST API
Access Serenities programmatically. All endpoints require authentication.
Authentication
Include your API key in the Authorization header:
Authorization: Bearer mk_live_your_api_key
Base URL
https://app.serenitiesai.com/api/v1Request Format
All endpoints use
POST
method with JSON body:POST /api/v1/{router}/{procedure}
Content-Type: application/json
Authorization: Bearer mk_live_xxx
{
"param1": "value1",
"param2": "value2"
}Example Request
curl -X POST https://app.serenitiesai.com/api/v1/tables/listDatabases \
-H "Authorization: Bearer mk_live_your_api_key" \
-H "Content-Type: application/json" \
-d '{}'Available Endpoints
Explore the available API endpoints organized by resource type.
Error Handling
200
Success400
Bad Request - Invalid parameters401
Unauthorized - Invalid or missing API key403
Forbidden - No subscription or insufficient credits404
Not Found - Endpoint or resource not found