- A REST API for applications and scripts, fully documented with an interactive playground
- An MCP endpoint (JSON-RPC 2.0) for AI agents and MCP-compatible clients
- The AI Collection App, a reusable Builder app that exposes the API as ready-made instructions inside your own workspaces (see In the Builder below)
Collections API Reference
Full endpoint documentation with request/response schemas and a live playground: collections CRUD, records, analytics, and the MCP endpoint.
REST API at a Glance
Queries accept MongoDB-style filters:
$where, $function, $expr, $lookup, $merge, $accumulator, $out) are rejected.
MCP Endpoint
Agents and MCP clients connect to the workspace webhook endpoint (shown in the Settings page of the product):initialize, tools/list, tools/call). The endpoint exposes the data tools agents use:
Tool arguments mirror the REST payloads; see the API Reference for the schemas.
To bind an agent to a single collection, point it at the per-collection endpoint instead; the
collection_id is then implicit on every call:
Text filters match exactly and are case-sensitive:
informatique will not match a stored Informatique. For case-insensitive matching use a regex such as {"category":{"$regex":"^informatique$","$options":"i"}}, or call data_distinct first to get the exact value. The ask tool and endpoint handle this for you.Schema Format
When creating a collection programmatically, columns are declared as:text, integer, double, boolean, date, datetime, json, array.
In the Builder (App)
For workflows built in Prisme.ai Builder, you do not need to call the REST API with rawfetch. Import the AI Collection App and call its instructions directly, the same way you would use any other app.
1
Install the app
In your workspace, open Apps, add AI Collection App, and (optionally) set an API key in its configuration. When an automation runs in a user context, the user’s identity is propagated automatically, so a key is only needed for headless flows (crons, event listeners).
2
Call an instruction
Each REST endpoint is exposed as a clean instruction, grouped into folders in the editor:
{ error: true, status, message } so you can branch on failures.
Limits
Behavior Notes
- Protected fields: record IDs, creation timestamps, and ownership metadata are managed by the platform; they are stripped from update payloads.
- Bulk deletes are opt-in: deleting multiple records in one call is rejected unless enabled in the platform configuration.
- Duplicate names are rejected: collection names are unique per owner.
- Audit events: every write (
insert,update,upsert,delete,collection created) emits an audit event with the actor and target collection.
Next Steps
Collections API Reference
Interactive playground and full schemas
Using Collections with Agents
The user-level view of agent access