Integrations API
- GET
/api/v1/app-passwords - POST
/api/v1/app-passwords - PATCH
/api/v1/app-passwords/{id} - DELETE
/api/v1/app-passwords/{id} - GET
/api/v1/email-inbox - PATCH
/api/v1/email-inbox - POST
/api/v1/email-inbox/rotate - GET
/api/v1/me/mcp-consent - POST
/api/v1/me/mcp-consent - GET
/api/v1/me/oauth-grants - DELETE
/api/v1/me/oauth-grants/{id} - GET
/api/v1/webhooks - POST
/api/v1/webhooks - GET
/api/v1/webhooks/{id} - PATCH
/api/v1/webhooks/{id} - DELETE
/api/v1/webhooks/{id} - GET
/api/v1/webhooks/{id}/deliveries - POST
/api/v1/webhooks/{id}/deliveries/{did}/redeliver - POST
/api/v1/webhooks/{id}/test
GET /api/v1/app-passwords
List app passwords · Token or session
{appPasswords:[…]}, see CalDAV and app passwords
| Field | Type | Description |
|---|---|---|
appPasswords required | array of object | |
appPasswords[].createdAt required | number | |
appPasswords[].events required | boolean | |
appPasswords[].id required | string | |
appPasswords[].lastUsedAt required | number | null | |
appPasswords[].name required | string | |
appPasswords[].revokedAt required | number | null | |
appPasswords[].scope required | object | |
appPasswords[].scope.inboxes required | array of string | |
appPasswords[].scope.mode required | string | |
appPasswords[].scope.projects required | array of string | |
appPasswords[].scope.workspaces required | array of string |
POST /api/v1/app-passwords
Create a app password · Token or session
{name, scope?} → 201 {appPassword, secret} (secret shown once)
Needs a session or an admin token; full tokens are refused. Needs a recently confirmed session or second factor.
| Field | Type | Description |
|---|---|---|
events required | boolean | |
name required | string | |
scope | object | null | |
scope.inboxes required | array of string | |
scope.mode required | string | |
scope.projects required | array of string | |
scope.workspaces required | array of string |
| Field | Type | Description |
|---|---|---|
appPassword required | object | null | |
appPassword.createdAt required | number | |
appPassword.events required | boolean | |
appPassword.id required | string | |
appPassword.lastUsedAt required | number | null | |
appPassword.name required | string | |
appPassword.revokedAt required | number | null | |
appPassword.scope required | object | |
appPassword.scope.inboxes required | array of string | |
appPassword.scope.mode required | string | |
appPassword.scope.projects required | array of string | |
appPassword.scope.workspaces required | array of string | |
secret required | string |
PATCH /api/v1/app-passwords/{id}
Update a app password · Token or session
{scope} → {appPassword}
Needs a session or an admin token; full tokens are refused. Needs a recently confirmed session or second factor.
| Field | Type | Description |
|---|---|---|
id required | string | path |
| Field | Type | Description |
|---|---|---|
scope | object | null | |
scope.inboxes required | array of string | |
scope.mode required | string | |
scope.projects required | array of string | |
scope.workspaces required | array of string |
| Field | Type | Description |
|---|---|---|
appPassword required | object | null | |
appPassword.createdAt required | number | |
appPassword.events required | boolean | |
appPassword.id required | string | |
appPassword.lastUsedAt required | number | null | |
appPassword.name required | string | |
appPassword.revokedAt required | number | null | |
appPassword.scope required | object | |
appPassword.scope.inboxes required | array of string | |
appPassword.scope.mode required | string | |
appPassword.scope.projects required | array of string | |
appPassword.scope.workspaces required | array of string |
DELETE /api/v1/app-passwords/{id}
Delete a app password · Token or session
revoke → 204
| Field | Type | Description |
|---|---|---|
id required | string | path |
GET /api/v1/email-inbox
Get email inbox · Token or session
your email-to-task address and settings, see Email to task
Refuses read and agent tokens.
| Field | Type | Description |
|---|---|---|
address required | string | null | |
allowlist required | array of string | |
enabled required | boolean | |
enabledByOperator required | boolean | |
hourlyLimit required | number |
PATCH /api/v1/email-inbox
Update email inbox · Token or session
{enabled?, allowlist?} → the same shape; creates the inbox when there is none
Refuses read and agent tokens.
| Field | Type | Description |
|---|---|---|
allowlist required | string | |
enabled | boolean | null |
| Field | Type | Description |
|---|---|---|
address required | string | null | |
allowlist required | array of string | |
enabled required | boolean | |
enabledByOperator required | boolean | |
hourlyLimit required | number |
POST /api/v1/email-inbox/rotate
Email inbox rotate · Token or session
new address; the old one stops working
Refuses read and agent tokens.
| Field | Type | Description |
|---|---|---|
address required | string | null | |
allowlist required | array of string | |
enabled required | boolean | |
enabledByOperator required | boolean | |
hourlyLimit required | number |
GET /api/v1/me/mcp-consent
Get me mcp consent · Session only
?<authorize query>: the consent dialog's request → {client:{id, name, dynamic}, scope, redirectHost}; 400 with the OAuth error shape when the request is invalid
Needs a session; tokens are refused.
| Field | Type | Description |
|---|---|---|
client | object | |
client.dynamic required | boolean | |
client.id required | string | |
client.name required | string | |
error | string | |
error_description | string | |
redirectHost | string | |
scope | string |
POST /api/v1/me/mcp-consent
Me mcp consent · Session only
{query, allow} → {redirect}: the registered address with code and state on allow, with error=access_denied otherwise
Needs a session; tokens are refused.
| Field | Type | Description |
|---|---|---|
allow required | boolean | |
query required | string | |
workspaces | array of string |
| Field | Type | Description |
|---|---|---|
error | string | |
error_description | string | |
redirect | string |
GET /api/v1/me/oauth-grants
List me oauth grants · Token or session
{grants:[{id, clientId, clientName, scope, workspaces, createdAt, lastUsedAt}]}: the AI apps you connected that are neither revoked nor expired, most recently used first; scope is read or agent, workspaces is empty for every workspace, lastUsedAt is null before first use; shown with the sessions in Settings → Account, also while MCP is off; read and agent tokens → 403 insufficient_scope
Refuses read and agent tokens.
| Field | Type | Description |
|---|---|---|
grants required | array of object | |
grants[].clientId required | string | |
grants[].clientName required | string | |
grants[].createdAt required | number | |
grants[].id required | string | |
grants[].lastUsedAt required | number | null | |
grants[].scope required | string | |
grants[].workspaces required | array of string |
DELETE /api/v1/me/oauth-grants/{id}
Delete a me oauth grant · Token or session
204: disconnects that app; its refresh token gets invalid_grant and its access token 401; another person's, a revoked or an unknown id → 404 not_found; demo instances → 403 demo_restricted; recorded as mcp_oauth.disconnected
| Field | Type | Description |
|---|---|---|
id required | string | path |
GET /api/v1/webhooks
List webhooks · Token or session
{webhooks:[…], events:[…]}, see Webhooks
| Field | Type | Description |
|---|---|---|
events required | array of string | |
webhooks required | array of object | |
webhooks[].consecutiveFailures required | number | |
webhooks[].createdAt required | number | |
webhooks[].disabledReason required | string | null | |
webhooks[].enabled required | boolean | |
webhooks[].events required | array of string | |
webhooks[].id required | string | |
webhooks[].projectId required | string | null | |
webhooks[].secret | string | |
webhooks[].updatedAt required | number | |
webhooks[].url required | string |
POST /api/v1/webhooks
Create a webhook · Token or session
{url, events, projectId?, enabled?} → 201 {webhook} (includes secret, shown once)
| Field | Type | Description |
|---|---|---|
webhook required | object | null | |
webhook.consecutiveFailures required | number | |
webhook.createdAt required | number | |
webhook.disabledReason required | string | null | |
webhook.enabled required | boolean | |
webhook.events required | array of string | |
webhook.id required | string | |
webhook.projectId required | string | null | |
webhook.secret | string | |
webhook.updatedAt required | number | |
webhook.url required | string |
GET /api/v1/webhooks/{id}
Get a webhook · Token or session
{webhook} (never the secret)
| Field | Type | Description |
|---|---|---|
id required | string | path |
| Field | Type | Description |
|---|---|---|
webhook required | object | null | |
webhook.consecutiveFailures required | number | |
webhook.createdAt required | number | |
webhook.disabledReason required | string | null | |
webhook.enabled required | boolean | |
webhook.events required | array of string | |
webhook.id required | string | |
webhook.projectId required | string | null | |
webhook.secret | string | |
webhook.updatedAt required | number | |
webhook.url required | string |
PATCH /api/v1/webhooks/{id}
Update a webhook · Token or session
partial {url?, events?, projectId?, enabled?} → {webhook}
| Field | Type | Description |
|---|---|---|
id required | string | path |
| Field | Type | Description |
|---|---|---|
webhook required | object | null | |
webhook.consecutiveFailures required | number | |
webhook.createdAt required | number | |
webhook.disabledReason required | string | null | |
webhook.enabled required | boolean | |
webhook.events required | array of string | |
webhook.id required | string | |
webhook.projectId required | string | null | |
webhook.secret | string | |
webhook.updatedAt required | number | |
webhook.url required | string |
DELETE /api/v1/webhooks/{id}
Delete a webhook · Token or session
delete with its delivery log → 204
| Field | Type | Description |
|---|---|---|
id required | string | path |
GET /api/v1/webhooks/{id}/deliveries
List webhook deliveries · Token or session
{deliveries:[…]}, newest 100
| Field | Type | Description |
|---|---|---|
id required | string | path |
| Field | Type | Description |
|---|---|---|
deliveries required | array of object | |
deliveries[].attempts required | number | |
deliveries[].createdAt required | number | |
deliveries[].deliveredAt required | number | null | |
deliveries[].durationMs required | number | null | |
deliveries[].error required | string | null | |
deliveries[].event required | string | |
deliveries[].id required | string | |
deliveries[].nextAttemptAt required | number | null | |
deliveries[].responseExcerpt required | string | null | |
deliveries[].status required | string | |
deliveries[].statusCode required | number | null | |
deliveries[].webhookId required | string |
POST /api/v1/webhooks/{id}/deliveries/{did}/redeliver
Webhook delivery redeliver · Token or session
queue the same body with a new id → 202 {delivery}
| Field | Type | Description |
|---|---|---|
id required | string | path |
did required | string | path |
| Field | Type | Description |
|---|---|---|
delivery required | object | null | |
delivery.attempts required | number | |
delivery.createdAt required | number | |
delivery.deliveredAt required | number | null | |
delivery.durationMs required | number | null | |
delivery.error required | string | null | |
delivery.event required | string | |
delivery.id required | string | |
delivery.nextAttemptAt required | number | null | |
delivery.responseExcerpt required | string | null | |
delivery.status required | string | |
delivery.statusCode required | number | null | |
delivery.webhookId required | string |
POST /api/v1/webhooks/{id}/test
Webhook test · Token or session
send a ping now → {ok, delivery}
| Field | Type | Description |
|---|---|---|
id required | string | path |
| Field | Type | Description |
|---|---|---|
delivery required | object | null | |
delivery.attempts required | number | |
delivery.createdAt required | number | |
delivery.deliveredAt required | number | null | |
delivery.durationMs required | number | null | |
delivery.error required | string | null | |
delivery.event required | string | |
delivery.id required | string | |
delivery.nextAttemptAt required | number | null | |
delivery.responseExcerpt required | string | null | |
delivery.status required | string | |
delivery.statusCode required | number | null | |
delivery.webhookId required | string | |
ok required | boolean |