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

  • objectstring
    Always action.
  • namestring
    The action's name, app_ and what it works on, like app_knowledge.
  • descriptionstring
    What the action does and how to use its arguments, in English.
  • input_schemaobject
    The arguments it takes, as JSON Schema. Send them as the body of Run an action.
Action object
{
  "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

GET/v1/actionsRead access

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.

GET/v1/actions
curl https://okaymate.ai/api/v1/actions \
  -H "Authorization: Bearer $OKAYMATE_API_KEY"
Response200
{
  "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

  • objectstring
    Always action_result.
  • actionstring
    The action's name.
  • changedstring or null
    The part of the app the action changed, null when it only read. The app's open pages that show it load it again.
  • resultobject or null
    What the action answers, as the app's own page has it. Its fields depend on the action. No secret is ever in it.
Action result object
{
  "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

POST/v1/actions/:nameRead access

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

Returns

An action result object.

Errors

  • The app refused the action or it failed. The message says why.
  • The key has Read access and the action, with these arguments, changes something.
  • The action is a person's own account and works only for someone signed in to Okaymate.
  • No action with this name.
POST/v1/actions/: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."
  }'
Response200
{
  "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"
  }
}