API reference
Actions
Actions are everything the Okaymate app does, through the API. Each one is a tool of the app, the same the business's AI teammate uses in its chats and the MCP server gives. It runs on the key's business as its owner, with the app's own checks.
List them for their names, what each one does and the arguments it takes as JSON Schema, then run one with its arguments as the body. An action that only reads works with Read access. One that changes something needs Read and write access.
A person's own account, their profile, plan, businesses, affiliate link and chats, never answers a business's key. A new key, a payment, an upload and deleting an account stay in the app.
The action object
One action of the Okaymate app, as the business's AI teammate and the MCP server use it.
Attributes
- objectstringAlways
action. - namestringThe action's name,
app_and what it works on, likeapp_knowledge. - descriptionstringWhat the action does and how to use its arguments, in English.
- input_schemaobjectThe arguments it takes, as JSON Schema. Send them as the body of Run an action.
{
"object": "action",
"name": "app_knowledge",
"description": "The customer chat's knowledge (in its settings: what the team taught it, entries with a title and a text): list, save (a new one without id, or change one: title, text), delete (id). The customer chat answers visitors from it and from the Public files.",
"input_schema": {
"type": "object",
"properties": {
"action": {
"type": "string",
"description": "list, save or delete.",
"enum": ["list", "save", "delete"]
},
"id": {
"type": "string",
"description": "The entry's id, to change or delete it."
},
"title": {
"type": "string",
"description": "Its title."
},
"text": {
"type": "string",
"description": "What it says."
}
},
"required": ["action"]
}
}List actions
Returns every action of the app, its name, what it does and the arguments it takes.
Returns
A list of action objects, all of them in one page.
curl https://okaymate.ai/api/v1/actions \
-H "Authorization: Bearer $OKAYMATE_API_KEY"{
"object": "list",
"data": [
{
"object": "action",
"name": "app_knowledge",
"description": "The customer chat's knowledge (in its settings: what the team taught it, entries with a title and a text): list, save (a new one without id, or change one: title, text), delete (id). The customer chat answers visitors from it and from the Public files.",
"input_schema": {
"type": "object",
"properties": {
"action": {
"type": "string",
"description": "list, save or delete.",
"enum": ["list", "save", "delete"]
},
"id": {
"type": "string",
"description": "The entry's id, to change or delete it."
},
"title": {
"type": "string",
"description": "Its title."
},
"text": {
"type": "string",
"description": "What it says."
}
},
"required": ["action"]
}
},
{
"object": "action",
"name": "app_customer_chat_install",
"description": "How the customer chat goes on the business's website (its install, in the customer chat's settings): get (the line to paste and the sites it may run on), sites (sets the sites it may run on: domains, like shop.com; replaces the list).",
"input_schema": {
"type": "object",
"properties": {
"action": {
"type": "string",
"description": "get or sites. Default get.",
"enum": ["get", "sites"]
},
"domains": {
"type": "array",
"items": {
"type": "string"
},
"description": "For sites: the domains, like shop.com."
}
}
}
}
]
}The action result object
What an action did.
Attributes
- objectstringAlways
action_result. - actionstringThe action's name.
- changedstring or nullThe part of the app the action changed,
nullwhen it only read. The app's open pages that show it load it again. - resultobject or nullWhat the action answers, as the app's own page has it. Its fields depend on the action. No secret is ever in it.
{
"object": "action_result",
"action": "app_knowledge",
"changed": "customer_chat",
"result": {
"id": "Kn4wT8pQ2z",
"title": "Opening hours",
"text": "Open Monday to Saturday, 9am to 7pm.",
"source": "team",
"question": null,
"createdAt": "2026-11-24T09:20:03.000Z",
"updatedAt": "2026-11-24T09:20:03.000Z"
}
}Run an action
Runs one action on the key's business, the body being its arguments as its input_schema names them. With Read access it only reads, and an action that changes something needs Read and write access.
Path parameters
- namestringRequiredThe action's name, from List actions.
Returns
Errors
- The app refused the action or it failed. The
messagesays why. - The key has Read access and the action, with these arguments, changes something.
- 403account_onlyThe action is a person's own account and works only for someone signed in to Okaymate.
- No action with this name.
curl -X POST \
https://okaymate.ai/api/v1/actions/app_knowledge \
-H "Authorization: Bearer $OKAYMATE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "save",
"title": "Opening hours",
"text": "Open Monday to Saturday, 9am to 7pm."
}'{
"object": "action_result",
"action": "app_knowledge",
"changed": "customer_chat",
"result": {
"id": "Kn4wT8pQ2z",
"title": "Opening hours",
"text": "Open Monday to Saturday, 9am to 7pm.",
"source": "team",
"question": null,
"createdAt": "2026-11-24T09:20:03.000Z",
"updatedAt": "2026-11-24T09:20:03.000Z"
}
}