Tool connectors
GET /api/v1/tool-connectors
The user's tool connectors (outside services whose tools Postory's own chat uses for posts) with their tools and policies, and the catalog of services that can be connected. No token or tool description is answered. Free.
- Scope
postory:read - Limit class
READ - Success
200
Example
curl https://postory.io/api/v1/tool-connectors \
-H "Authorization: Bearer $POSTORY_API_KEY"{
"connections": [
{
"connection_id": "<connection_id>",
"slug": "notion",
"name": "Notion",
"status": "connected",
"enabled": true,
"auth_kind": "oauth",
"scopes": "default",
"tools": [
{
"name": "notion-search",
"read_only": true,
"destructive": false,
"policy": "always",
"changed": false
},
{
"name": "notion-create-pages",
"read_only": false,
"destructive": false,
"policy": "ask",
"changed": false
},
{
"name": "notion-update-page",
"read_only": false,
"destructive": true,
"policy": "ask",
"changed": false
}
],
"review": null,
"last_error_code": null,
"created_at": "2026-12-01T09:00:00+00:00"
}
],
"count": 1,
"limit": 10,
"catalog": [
{
"slug": "notion",
"name": "Notion",
"description": "Turn your notes, docs and content calendars into posts.",
"connection_id": "<connection_id>"
},
{
"slug": "canva",
"name": "Canva",
"description": "Find your designs and brand assets for a post.",
"connection_id": null
}
],
"settings_url": "https://postory.io/settings/connectors",
"acting_as": {"postory": "[email protected]", "plan": "free"}
}Other responses
401No API key, or an invalid or revoked one
403The key lacks the scope, or access is paused
422A request parameter is not valid
429Rate limit spent; see Retry-After
PATCH /api/v1/tool-connectors/{connection_id}
Turn a tool connector on or off, set its tools' policies, or rename it; only what is sent changes, and a value already so is a success. A tool changed under review is approved in Postory's Settings → Connectors only.
- Scope
postory:drafts - Limit class
WRITE - Success
200
Parameters
| Name | In | Type | Description |
|---|---|---|---|
connection_idrequired | path | string | A connection's |
Request body
| Field | Type | Description |
|---|---|---|
enabled | boolean |
|
name | string | What the user calls it. Up to 80 characters |
policies | object | Tool name -> |
Example
curl -X PATCH "https://postory.io/api/v1/tool-connectors/<connection_id>" \
-H "Authorization: Bearer $POSTORY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"enabled": false}'{
"connection": {
"connection_id": "<connection_id>",
"slug": "notion",
"name": "Notion",
"status": "connected",
"enabled": false,
"auth_kind": "oauth",
"scopes": "default",
"tools": [
{
"name": "notion-search",
"read_only": true,
"destructive": false,
"policy": "always",
"changed": false
},
{
"name": "notion-create-pages",
"read_only": false,
"destructive": false,
"policy": "ask",
"changed": false
},
{
"name": "notion-update-page",
"read_only": false,
"destructive": true,
"policy": "ask",
"changed": false
}
],
"review": null,
"last_error_code": null,
"created_at": "2026-12-01T09:00:00+00:00"
},
"changed": ["enabled"],
"acting_as": {"postory": "[email protected]", "plan": "free"}
}Other responses
401No API key, or an invalid or revoked one
403The key lacks the scope, or access is paused
404Not found, or not this user's
422A request parameter is not valid
429Rate limit spent; see Retry-After
DELETE /api/v1/tool-connectors/{connection_id}
Disconnect a tool connector: Postory revokes its sign-in at the service where it can (revoked_at_server) and deletes it with its tokens.
- Scope
postory:drafts - Limit class
DELETE - Success
200
Parameters
| Name | In | Type | Description |
|---|---|---|---|
connection_idrequired | path | string | A connection's |
Example
curl -X DELETE "https://postory.io/api/v1/tool-connectors/<connection_id>" \
-H "Authorization: Bearer $POSTORY_API_KEY"{
"connection_id": "<connection_id>",
"slug": "notion",
"name": "Notion",
"disconnected": true,
"revoked_at_server": true,
"acting_as": {"postory": "[email protected]", "plan": "free"}
}Other responses
401No API key, or an invalid or revoked one
403The key lacks the scope, or access is paused
404Not found, or not this user's
422A request parameter is not valid
429Rate limit spent; see Retry-After
GET /api/v1/tool-connectors/activity
Postory's chat's calls to the user's tool connectors and the connectors' events (connected, disconnected, tool_changed…), newest first; no arguments or results. Next page: offset = next_offset. Free.
- Scope
postory:read - Limit class
READ - Success
200
Parameters
| Name | In | Type | Description |
|---|---|---|---|
limit | query | integer | At most this many items, 1-100 (default 20). Default: 20 · From 1 to 100 |
offset | query | integer | Items to skip: the previous page's |
Example
curl https://postory.io/api/v1/tool-connectors/activity \
-H "Authorization: Bearer $POSTORY_API_KEY"{
"items": [
{
"type": "call",
"id": "<call_id>",
"connection_id": "<connection_id>",
"connection_name": "Notion",
"created_at": "2026-12-01T09:05:00+00:00",
"tool": "notion-search",
"kind": "read",
"decision": "auto",
"status": "ok",
"duration_ms": 1322,
"error_code": null
},
{
"type": "event",
"id": "<event_id>",
"connection_id": "<connection_id>",
"connection_name": "Notion",
"created_at": "2026-12-01T09:00:00+00:00",
"event": "connected"
}
],
"next_offset": null,
"acting_as": {"postory": "[email protected]", "plan": "free"}
}Other responses
401No API key, or an invalid or revoked one
403The key lacks the scope, or access is paused
422A request parameter is not valid
429Rate limit spent; see Retry-After
GET /api/v1/tool-connectors/link/{slug}
A link (connect_url, Postory's Settings → Connectors) where the user connects slug in a browser signed in to Postory, signing in to that service there; custom: any HTTPS MCP server. GET /tool-connectors then lists it. Never writes.
- Scope
postory:read - Limit class
READ - Success
200
Parameters
| Name | In | Type | Description |
|---|---|---|---|
slugrequired | path | "notion" | "canva" | "airtable" | "miro" | "trello" | "beehiiv" | "descript" | "zapier" | "custom" |
Example
curl "https://postory.io/api/v1/tool-connectors/link/<slug>" \
-H "Authorization: Bearer $POSTORY_API_KEY"{
"slug": "canva",
"name": "Canva",
"connect_url": "https://postory.io/settings/connectors?connect=canva",
"connection_id": null,
"status": null,
"limit_reached": false,
"limit": 10,
"acting_as": {"postory": "[email protected]", "plan": "free"}
}Other responses
401No API key, or an invalid or revoked one
403The key lacks the scope, or access is paused
422A request parameter is not valid
429Rate limit spent; see Retry-After