AI Assistant API

Leverage AI-powered content generation and automation

Base URL: https://api.wemasy.nl/api
ⓘ The token stays in this browser tab only (sessionStorage) and is sent to the WEMASY API only. Don't use production tokens on shared computers.

AI automations

List the project's automations, with the actions and schedule kinds the form offers

POST /services/ai/v1/automations/list Auth

Create (no id) or update an automation

POST /services/ai/v1/automations/save Auth

Switch an automation on or off

POST /services/ai/v1/automations/toggle Auth

Queue one run now (charged like a scheduled run)

POST /services/ai/v1/automations/run-now Auth

Delete an automation and its run history

POST /services/ai/v1/automations/delete Auth

Run history of one automation, newest first

POST /services/ai/v1/automations/runs Auth

AiDrafts

POST /services/ai/v1/drafts/status Auth
POST /services/ai/v1/drafts/history Auth
POST /services/ai/v1/drafts/diff Auth
POST /services/ai/v1/drafts/check Auth
POST /services/ai/v1/drafts/publish Auth
POST /services/ai/v1/drafts/update Auth
POST /services/ai/v1/drafts/discard Auth

Chat

POST /services/ai/v1/chat/config Auth

Send Chat Message

POST /services/ai/v1/chat Auth
POST /services/ai/v1/dictation/transcribe Auth
POST /services/ai/v1/chat/images/upload Auth
POST /services/ai/v1/chat/images/upload-url Auth
POST /services/ai/v1/chat/images/delete Auth

Chat Settings

Get Chat Settings

POST /services/ai/v1/chat/settings/get Auth

Update Chat Settings

POST /services/ai/v1/chat/settings/update Auth

Connections

Create Connection

POST /services/ai/v1/user/connections/create Auth

List Connections

POST /services/ai/v1/user/connections/list Auth

Test Connection

POST /services/ai/v1/user/connections/test Auth

Update Connection

POST /services/ai/v1/user/connections/update Auth

Toggle Connection Status

POST /services/ai/v1/user/connections/toggle-status Auth

Delete Connection

POST /services/ai/v1/user/connections/delete Auth

Conversations

List Conversations for this project. Visibility: config ai.conversations.visibility (project|owner)

POST /services/ai/v1/conversations/list Auth

Get Conversation — any session on this project (teammate-shared)

POST /services/ai/v1/conversations/get Auth

Rename Conversation

POST /services/ai/v1/conversations/rename Auth

Sets a user-chosen title. A non-empty title overrides the title that would otherwise be derived from the first message / goal. Passing an empty/blank title clears the custom name and reverts to the derived one.

Fork Conversation

POST /services/ai/v1/conversations/fork Auth

Creates a new same-project chat branched from this conversation (Claude/ChatGPT-style branch). Optional cut at a message id.

POST /services/ai/v1/conversations/fork-to-project Auth

List projects the user can fork into (excludes current project when provided)

POST /services/ai/v1/conversations/fork-targets Auth

Compact Conversation

POST /services/ai/v1/conversations/compact Auth

Summarizes older turns into a checkpoint and keeps a recent verbatim tail for the model prompt. Full DB transcript is preserved for inspect.

Archive a conversation (soft-delete). Data is retained; the user can restore from Archived

POST /services/ai/v1/conversations/archive Auth

Restore an archived conversation back to the active sidebar list

POST /services/ai/v1/conversations/restore Auth

Permanently remove a chat from the user's account while retaining the row for audit

POST /services/ai/v1/conversations/unlink Auth

The run stays archived; we copy user_id → original_user_id and clear user_id so it no longer appears in active or archived lists for that user.

POST /services/ai/v1/conversations/pick-greeting Auth
POST /services/ai/v1/conversations/update-deployment-canvas Auth

Archive a conversation (soft-delete). Data is retained; the user can restore from Archived

POST /services/ai/v1/conversations/delete Auth

Credits

Balance = non-expiring prepaid EUR + this week's allotment (expires Sunday UTC). Spend order: weekly allotment first, then prepaid/top-up

POST /services/ai/v1/credits/balance Auth

Get EUR usage rolled up for one user message turn (including cancelled turns)

POST /services/ai/v1/credits/turn-usage Auth

McpProjectSettingsGet

POST /services/ai/v1/mcp/project-settings/get Auth

McpProjectSettingsUpdate

POST /services/ai/v1/mcp/project-settings/update Auth

Memory

Save Memory

POST /services/ai/v1/memory/save Auth

Search Memory

POST /services/ai/v1/memory/search Auth

List recent project memory facts

POST /services/ai/v1/memory/list Auth

Get one project memory fact by id or key

POST /services/ai/v1/memory/get Auth

Delete a project memory fact by id or key

POST /services/ai/v1/memory/delete Auth

ProjectLesson

POST /services/ai/v1/lessons/list Auth
POST /services/ai/v1/lessons/get Auth
POST /services/ai/v1/lessons/create Auth
POST /services/ai/v1/lessons/update Auth
POST /services/ai/v1/lessons/deactivate Auth
POST /services/ai/v1/lessons/activate Auth

Providers

List Providers

POST /services/ai/v1/user/providers/list Auth

Users can only view which providers are available. They cannot create, update, or delete providers.

Site assistant The owner's side of the site assistant (#1579): the setup

Site assistant setup

POST /services/ai/v1/site-assistant/settings/get Auth

Save the site assistant setup

POST /services/ai/v1/site-assistant/settings/save Auth

Read the outside websites again

POST /services/ai/v1/site-assistant/crawl Auth

The websites the owner listed for the tracking snippet are read (public pages only, politely) into the assistant's knowledge. Queued; at most once every 10 minutes per project.

Conversations visitors had

POST /services/ai/v1/site-assistant/conversations/list Auth

One conversation with its messages

POST /services/ai/v1/site-assistant/conversations/get Auth

Delete a conversation (also on a visitor's request)

POST /services/ai/v1/site-assistant/conversations/delete Auth

Turn a conversation into a lead

POST /services/ai/v1/site-assistant/conversations/to-lead Auth

Turn a conversation into a ticket of the project's helpdesk, to answer the visitor by mail

POST /services/ai/v1/site-assistant/conversations/to-ticket Auth

Thumbs on an answer, with the right answer for next time

POST /services/ai/v1/site-assistant/conversations/feedback Auth

What the chat did: the action calls (the audit log)

POST /services/ai/v1/site-assistant/actions/calls Auth

Newest first: action, kind, status, who confirmed, a plain summary (never raw parameters), duration and credits. `waiting: true` lists only the requests that wait for the owner's approval.

Approve or reject a request that waits for the owner

POST /services/ai/v1/site-assistant/actions/decide Auth

The owner's test chat (the same visitor agent; leads and handoffs are only described)

POST /services/ai/v1/site-assistant/preview Auth

Skill

POST /services/ai/v1/skills/list Auth
POST /services/ai/v1/skills/skillify Auth
POST /services/ai/v1/skills/load Auth
POST /services/ai/v1/skills/unload Auth
POST /services/ai/v1/skills/active Auth

Full skill (incl. instructions) for the manager popup edit form. Project-owned skills only — global skills are read via /skills/list

POST /services/ai/v1/skills/get Auth
POST /services/ai/v1/skills/update Auth
POST /services/ai/v1/skills/delete Auth

Tools

Preview Tool

POST /services/ai/v1/tools/preview Auth

List Tools

POST /services/ai/v1/tools/list Auth

Execute Tool

POST /services/ai/v1/tools/execute Auth