REST API

Access Serenities programmatically. All endpoints require authentication.

Get Started

Create an API key in your account settings to start making API requests.

Create API Key

Authentication

Include your API key in the Authorization header:

Authorization: Bearer mk_live_your_api_key

Base URL

https://app.serenitiesai.com/api/v1

Request 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.

Base & Tables

Bases, tables, fields, views and records.

Sites

Site projects, pages, components, publishing and the site’s own settings.

Flows

Automation flows: create, change, run and read their runs.

Connected accounts

Connected accounts of the built-in connectors: add, test, switch on or off.

Linked Records

Links between records in different tables.

Sharing

Existing share links: change and revoke them, and read their activity; a new share is made with the Files tools.

Files

Files and folders: upload, download, move, and who may open them.

Store

Browse the Store, install templates and add-ons, and check what you own.

Automations

Webhooks, schedules, email triggers, secrets and sending mailboxes.

Functions

Every function, on your sites and in your workspace: create, change, run, versions and runs.

AI Agents

AI agents: build and run them, review runs and approvals, skills, memory and triggers.

Agent tasks

An agent’s task list: add, read, update and stop tasks.

Agent groups

Agent groups: which agents work together and who leads them.

Site events

A site’s event log and catalog: what a site can react to.

Account events

Account-wide events and the triggers that start flows or agents from them.

Installed Apps

The apps installed in your workspace and the tables and records they own.

Apps

Install the apps Serenities ships; build, save and release your own.

Journeys

Journeys: emails that send themselves from what people do. Create them, enrol people, read runs.

App & site actions

The actions of your installed apps and your sites that an AI may run, and running them.

App actions

Who may run an installed app’s actions, and whether each runs on its own or asks first.

Roles

Your workspace’s own roles: what each may do, and changing them.

App permissions

What an installed app may use (outside websites, connections, email), allowed or turned off.

Settings

How much one AI chat message may spend before it stops, for the whole workspace.

Your profile

Your own profile: name and photo.

Alert channels

Alert channels: where agents and automations send their messages to you.

Web address

Your web address on Serenities: check one is free and reserve it.

Pending changes

Changes waiting for your OK: what became of each, and cancelling one.

Built by

Members, who built what, and who you are in this workspace.

Take payments

Taking payments on your sites: turn it on or off and read the setting.

Notifications

Your notifications: list them, read one, dismiss them.

Open to anyone

What is open to anyone, and making a table or file reachable only through your site.

Content pages

Content pages: publish a table as pages on your site, list them, or stop publishing.

Site blog

Site blog: turn a site's blog on or off, and set its addresses, posts per page and RSS.

Plan and usage

Your plan and usage, what the next plan gives, and what was used and charged between two dates.

Challenges

Builder challenges: read the open ones and their entries; enter, withdraw or comment, and see your entry’s stats and share kit.

Own AI key prices

Model prices for your own AI keys: see them, and type or remove a price the provider does not publish.

Error Handling

200
Success
400
Bad Request - Invalid parameters
401
Unauthorized - Invalid or missing API key
403
Forbidden - No subscription or insufficient credits
404
Not Found - Endpoint or resource not found
413
Payload Too Large - "That is too much to send at once." A call takes at most 100,000 values in all and 100,000 items in one list; some calls, those that carry a whole page, flow or table import, take more. A body over 2 MB is refused too (32 MB for those calls). Keep bulk data in a table and import it in calls of about 5,000 rows.
429
Too Many Requests - A rate limit. Wait the number of seconds in the Retry-After header (the answer repeats it as retryAfter, with the code RATE_LIMIT_EXCEEDED) and send again. One API key or token may make 120 requests a minute, and one person 300 a minute across all their keys and tokens. An address that sends many invalid keys is blocked for two minutes.