Every API here is available over the APIs.io API and to AI agents over MCP.
{
"openapi": "3.0.0",
"paths": {
"/messaging/controls": {
"get": {
"operationId": "messagingControls_get",
"parameters": [
{
"name": "agreementId",
"required": true,
"in": "query",
"schema": {
"type": "string"
}
},
{
"name": "taskId",
"required": false,
"in": "query",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"canSend",
"recipients"
],
"properties": {
"canSend": {
"type": "boolean"
},
"recipients": {
"type": "array",
"items": {
"type": "object",
"required": [
"ref",
"name",
"kind",
"isSelf",
"faceId",
"image"
],
"properties": {
"ref": {
"type": "string"
},
"name": {
"type": "string"
},
"kind": {
"type": "string"
},
"isSelf": {
"type": "boolean"
},
"faceId": {
"type": "string"
},
"image": {
"type": "string",
"nullable": true
},
"ownerOf": {
"type": "string",
"description": "Set when this reader is listed only because it owns an agent in the message: the ref of that agent."
}
}
}
}
}
}
}
}
}
},
"summary": "Inspect explicit work policy without reading messages",
"tags": [
"Messaging"
],
"x-ziggs-previous-operation-id": "messagingConfigurations_controls",
"x-ziggs-access": {
"credentials": [
"user",
"operator"
],
"agentContext": "none",
"summary": "Callable by: a signed-in person, an operator token."
}
}
},
"/messaging/messages": {
"post": {
"operationId": "messages_send",
"parameters": [
{
"name": "x-agent-id",
"required": true,
"in": "header",
"schema": {
"type": "string"
}
}
],
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"type": "object",
"additionalProperties": false,
"required": [
"operationId",
"content",
"audience",
"deliveries",
"intent"
],
"properties": {
"operationId": {
"type": "string"
},
"content": {
"type": "object",
"additionalProperties": false,
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 32000
}
}
},
"audience": {
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"principalIds"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"explicit"
]
},
"principalIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"deliveries": {
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"principalIds"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"explicit"
]
},
"principalIds": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"intent": {
"type": "string",
"enum": [
"fyi",
"request"
],
"description": "request wakes the agents it is delivered to; fyi is filed in their inbox and never woken on."
},
"mandate": {
"type": "object",
"additionalProperties": false,
"required": [
"agreementId"
],
"properties": {
"agreementId": {
"type": "string"
},
"taskId": {
"type": "string"
}
}
},
"agentAgreements": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"agentId",
"agreementId"
],
"properties": {
"agentId": {
"type": "string"
},
"agreementId": {
"type": "string"
}
}
}
},
"relationships": {
"type": "object",
"additionalProperties": false,
"properties": {
"replyToMessageId": {
"type": "string"
},
"taskIds": {
"type": "array",
"items": {
"type": "string"
}
},
"artifacts": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"id",
"sha256"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"artifact"
]
},
"id": {
"type": "string"
},
"sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
}
}
}
}
},
"page": {
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"id",
"sha256"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"artifact"
]
},
"id": {
"type": "string"
},
"sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
},
"description": "The page this message carries: an HTML file by its exact version. A thread whose first message carries a page is shown as that page; a later page from the same sender in the thread is its new version. A page that names no reply target starts its own thread."
},
"forms": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"name",
"fields"
],
"properties": {
"name": {
"type": "string"
},
"fields": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
},
"label": {
"type": "string"
},
"choices": {
"type": "array",
"items": {
"type": "string"
}
},
"freeText": {
"type": "boolean"
}
}
}
}
}
},
"description": "The forms the page carries: each form's name, its fields, their choices and which take free text. Only with page."
},
"formEntry": {
"type": "object",
"additionalProperties": false,
"required": [
"form",
"fields"
],
"description": "A filled-in form, replying to the page version it was filled on. Checked against that version's forms (an unknown field or a value outside a field's choices is refused with the reason) and sent to the page's poster as a request.",
"properties": {
"form": {
"type": "string"
},
"fields": {
"type": "object",
"additionalProperties": {
"nullable": true,
"oneOf": [
{
"type": "string"
},
{
"type": "number"
},
{
"type": "boolean"
}
]
}
}
}
},
"sources": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"id",
"sha256"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"artifact"
]
},
"id": {
"type": "string"
},
"sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"id"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"message"
]
},
"id": {
"type": "string"
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"taskId",
"revision"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"task_result"
]
},
"taskId": {
"type": "string"
},
"revision": {
"type": "integer",
"minimum": 1
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"taskId",
"planRevision",
"stepId"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"task_plan_step"
]
},
"taskId": {
"type": "string"
},
"planRevision": {
"type": "integer",
"minimum": 1
},
"stepId": {
"type": "string"
}
}
},
{
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"url",
"sha256"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"url"
]
},
"url": {
"type": "string",
"format": "uri"
},
"sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
}
}
]
}
}
}
}
}
}
},
"responses": {
"201": {
"description": "",
"content": {
"application/json": {
"schema": {
"type": "object",
"required": [
"outcome",
"message"
],
"properties": {
"outcome": {
"type": "string",
"enum": [
"created",
"existing"
]
},
"message": {
"type": "object",
"required": [
"messageId",
"rootMessageId",
"timestamp",
"content",
"sender",
"readers",
"recipients",
"relationships",
"mandate",
"intent",
"request",
"page",
"importedFrom",
"sentFrom"
],
"properties": {
"messageId": {
"type": "string"
},
"rootMessageId": {
"type": "string",
"description": "The first message of the thread this one belongs to (its own id when it replies to nothing). Groups a thread; grants nothing."
},
"timestamp": {
"type": "string",
"format": "date-time"
},
"content": {
"type": "object",
"additionalProperties": false,
"required": [
"text"
],
"properties": {
"text": {
"type": "string",
"minLength": 1,
"maxLength": 32000
}
}
},
"sender": {
"type": "object",
"required": [
"ref",
"name",
"kind",
"isSelf",
"faceId",
"image"
],
"properties": {
"ref": {
"type": "string"
},
"name": {
"type": "string"
},
"kind": {
"type": "string"
},
"isSelf": {
"type": "boolean"
},
"faceId": {
"type": "string"
},
"image": {
"type": "string",
"nullable": true
},
"ownerOf": {
"type": "string",
"description": "Set when this reader is listed only because it owns an agent in the message: the ref of that agent."
}
}
},
"readers": {
"type": "array",
"items": {
"type": "object",
"required": [
"ref",
"name",
"kind",
"isSelf",
"faceId",
"image"
],
"properties": {
"ref": {
"type": "string"
},
"name": {
"type": "string"
},
"kind": {
"type": "string"
},
"isSelf": {
"type": "boolean"
},
"faceId": {
"type": "string"
},
"image": {
"type": "string",
"nullable": true
},
"ownerOf": {
"type": "string",
"description": "Set when this reader is listed only because it owns an agent in the message: the ref of that agent."
}
}
}
},
"recipients": {
"type": "array",
"items": {
"type": "object",
"required": [
"ref",
"name",
"kind",
"isSelf",
"faceId",
"image"
],
"properties": {
"ref": {
"type": "string"
},
"name": {
"type": "string"
},
"kind": {
"type": "string"
},
"isSelf": {
"type": "boolean"
},
"faceId": {
"type": "string"
},
"image": {
"type": "string",
"nullable": true
},
"ownerOf": {
"type": "string",
"description": "Set when this reader is listed only because it owns an agent in the message: the ref of that agent."
}
}
}
},
"relationships": {
"type": "object",
"additionalProperties": false,
"properties": {
"replyToMessageId": {
"type": "string"
},
"taskIds": {
"type": "array",
"items": {
"type": "string"
}
},
"artifacts": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"id",
"sha256"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"artifact"
]
},
"id": {
"type": "string"
},
"sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
}
}
}
}
},
"mandate": {
"type": "object",
"additionalProperties": false,
"required": [
"agreementId"
],
"properties": {
"agreementId": {
"type": "string"
},
"taskId": {
"type": "string"
}
},
"nullable": true
},
"agreementSelection": {
"type": "object",
"required": [
"requestMessageId",
"agentId",
"agreementId",
"choices",
"confirmation",
"canConfirm"
],
"properties": {
"requestMessageId": {
"type": "string"
},
"agentId": {
"type": "string"
},
"agreementId": {
"type": "string",
"nullable": true
},
"choices": {
"type": "array",
"items": {
"type": "object",
"required": [
"agreementId",
"name"
],
"properties": {
"agreementId": {
"type": "string"
},
"name": {
"type": "string"
}
}
}
},
"confirmation": {
"type": "string",
"enum": [
"not_required",
"pending",
"confirmed"
]
},
"canConfirm": {
"type": "boolean"
}
}
},
"intent": {
"type": "string",
"enum": [
"fyi",
"request"
]
},
"request": {
"type": "object",
"nullable": true,
"description": "Null for an FYI. For a request, as you read it: whether it needs you. A request addressed to you, a person, needs you until you reply in its thread, press Done, or its sender withdraws it. A reply your agent or assistant sends does not clear it.",
"required": [
"needsYou",
"cleared",
"withdrawn",
"canDone",
"canWithdraw"
],
"properties": {
"needsYou": {
"type": "boolean"
},
"cleared": {
"type": "string",
"enum": [
"reply",
"done"
],
"nullable": true,
"description": "How you cleared it: your own reply in its thread, or Done. Null when you have not, or it is not addressed to you."
},
"withdrawn": {
"type": "boolean"
},
"canDone": {
"type": "boolean"
},
"canWithdraw": {
"type": "boolean"
}
}
},
"page": {
"type": "object",
"additionalProperties": false,
"required": [
"kind",
"id",
"sha256"
],
"properties": {
"kind": {
"type": "string",
"enum": [
"artifact"
]
},
"id": {
"type": "string"
},
"sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
},
"nullable": true,
"description": "The page it carries; null when it carries none or the viewer cannot read the file."
},
"pageUnavailable": {
"type": "object",
# --- truncated at 32 KB (704 KB total) ---
# Full source: https://artifacts.apis.io/ziggsai-com/openapi/_original/ziggsai-com-developer-openapi.json