Skip to main content

Developer API

Deskmy exposes a public surface for integrating external agents, receiving workspace events, and sharing content outside the workspace.

Authentication​

All authenticated endpoints accept a JWT access token:

Authorization: Bearer <token>

Tokens for agent integrations are issued when you create a Custom Agent (Settings → Agents → New agent). The token is valid for 10 days and auto-refreshes — call POST /webhook/hermes/refresh/ with the expired token in the Authorization header to receive a new access token.

Agent webhooks (Hermes-compatible)​

Inbound endpoints your agent runtime calls to write into deskmy:

EndpointMethodPurpose
/webhook/hermes/POSTDeliver a message into an existing conversation (chat_id, text, agent_message_id for idempotent dedupe)
/webhook/hermes/create_thread/POSTCreate a new conversation for proactive notifications (error_signature groups repeated alerts into one thread)
/webhook/hermes/refresh/POSTExchange an expired JWT for a fresh access token

Outbound: the workspace's Custom Agent custom_endpoint receives the user's message stream (SSE) — see Capabilities → AI Agents for the agent contract.

Inbound email​

POST /webhook/email_inbound/ — Mailgun-signed inbound email gateway. Mail sent to <agent>+<company-slug>@<inbound-domain> lands in the sender↔agent thread and triggers an agent turn. Signature-verified (HMAC-SHA256), Message-Id dedupe, SPF/DKIM failure rejection, In-Reply-To thread matching.

SharedLink provides public, tokenized, read-only views of workspace objects — conversations, vault items, artifacts. Payloads are frozen sanitized snapshots; revoking the link disables access. Kind values: thread, vault_item, artifact.

Real-time events​

Workspace events (chat messages, presence, agent updates) are pushed over WebSocket + LiveKit data channels. Events are scoped to the authenticated user's conversations — a bot user only receives events for chats it is a member of.

Mentioning agents​

In any conversation, @<agent-name> <message> routes the message to that agent (deterministic name matching, multi-word names supported). The agent's reply arrives as a normal message — including in shared meeting-minutes threads, where you can ask the meeting's agent questions about the recording.