Docs
Api reference

Platform

curl -X GET "https://example.com/api/tenant/announcements/active"
{  "maintenanceMode": true,  "broadcastAnnouncement": null}
GET
/api/platform/plans/catalog

Response Body

application/json

application/json

curl -X GET "https://example.com/api/platform/plans/catalog"
{  "plans": [    null  ]}
GET
/api/platform/plans

Response Body

application/json

application/json

curl -X GET "https://example.com/api/platform/plans"
{  "plans": [    null  ]}
POST
/api/platform/plans

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/platform/plans" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "success": true,  "id": 0}
PUT
/api/platform/plans/{id}

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PUT "https://example.com/api/platform/plans/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "success": true}
GET
/api/platform/audit-logs

Query Parameters

page?string
Default"1"
limit?string
Default"50"

Response Body

application/json

application/json

curl -X GET "https://example.com/api/platform/audit-logs"
{  "logs": [    null  ],  "pagination": {    "page": 0,    "limit": 0,    "total": 0,    "totalPages": 0  }}
GET
/api/platform/overview

Response Body

application/json

application/json

curl -X GET "https://example.com/api/platform/overview"
null
GET
/api/platform/businesses

Query Parameters

search?string
status?string
stripe?string
hasRestaurants?string
sort?string
page?string
limit?string

Response Body

application/json

application/json

curl -X GET "https://example.com/api/platform/businesses"
{  "businesses": [    null  ],  "pagination": {    "total": 0,    "page": 0,    "totalPages": 0  }}
POST
/api/platform/businesses

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/platform/businesses" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "slug": "string",    "ownerEmail": "[email protected]",    "ownerPassword": "stringst"  }'
null
DELETE
/api/platform/businesses/{id}

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/api/platform/businesses/string"
{  "success": true}
PUT
/api/platform/businesses/{id}

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PUT "https://example.com/api/platform/businesses/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "success": true}
POST
/api/platform/businesses/{id}/impersonate

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/platform/businesses/string/impersonate"
{  "token": "string",  "user": null,  "business": null}
GET
/api/platform/users

Query Parameters

search?string
scope?string
page?string
limit?string

Response Body

application/json

application/json

curl -X GET "https://example.com/api/platform/users"
{  "users": [    null  ],  "pagination": {    "total": 0,    "page": 0,    "totalPages": 0  }}
GET
/api/platform/telemetry

Response Body

application/json

application/json

curl -X GET "https://example.com/api/platform/telemetry"
{  "activeConcurrentCalls": 0,  "totalCallsToday": 0,  "avgCallDurationSeconds": 0,  "dograhWorkflowHealth": "string",  "twilioPool": {    "totalNumbers": 0,    "assignedNumbers": 0,    "availableNumbers": 0  },  "recentCallLogs": [    null  ]}
GET
/api/platform/financials

Response Body

application/json

application/json

curl -X GET "https://example.com/api/platform/financials"
{  "mrr": 0,  "arr": 0,  "activeSubscriptionsCount": 0,  "trialingCount": 0,  "cancelledCount": 0,  "estimatedOverageRevenue": 0,  "stripeConnectCount": 0,  "subscriptionDistribution": [    null  ],  "businessSubscriptions": [    null  ]}
GET
/api/platform/system-status

Response Body

application/json

application/json

curl -X GET "https://example.com/api/platform/system-status"
{  "maintenanceMode": true,  "broadcastAnnouncement": null,  "services": [    {      "name": "string",      "status": "operational",      "latencyMs": 0,      "uptimePercentage": 0    }  ]}
POST
/api/platform/maintenance

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/platform/maintenance" \  -H "Content-Type: application/json" \  -d '{    "enabled": true  }'
{  "maintenanceMode": true}
POST
/api/platform/announcements

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/platform/announcements" \  -H "Content-Type: application/json" \  -d '{    "message": "string",    "type": "info",    "active": true  }'
{  "broadcastAnnouncement": null}
GET
/api/platform/subscription

Response Body

application/json

application/json

curl -X GET "https://example.com/api/platform/subscription"
null
POST
/api/platform/checkout

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/api/platform/checkout" \  -H "Content-Type: application/json" \  -d '{    "interval": "monthly"  }'
{  "success": true,  "url": "string"}
GET
/api/platform/verify-session

Called by the browser on return from Stripe Checkout. The webhook does the same work asynchronously, but the redirect normally beats it — without this the business would look unpaid right after paying.

Query Parameters

session_id*string

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/api/platform/verify-session?session_id=string"
{  "success": true,  "status": "string"}
POST
/api/platform/billing-portal

Response Body

application/json

application/json

curl -X POST "https://example.com/api/platform/billing-portal"
{  "success": true,  "url": "string"}