# Worklayer > Documentation for the Worklayer API and the Worklayer MCP. - [Introduction](https://docs.myworklayer.com/index.md): Create custom interfaces to interact with your work factory. Use the headless Factory API to build visual, interactive UIs while Worklayer handles orchestration, apps, memory, and human-in-the-loop reviews. - [Create your first factory](https://docs.myworklayer.com/quickstart.md): Go from a blank Worklayer factory to a custom interface wired to the Factory API—using a UI-first prompt in your coding agent or step-by-step cURL calls. - [Authentication](https://docs.myworklayer.com/authentication.md): Authenticate Factory API requests with a Bearer API key scoped to your factory. - [Factory](https://docs.myworklayer.com/factory.md): A factory is an always-on workspace with its own apps, skills, memory, files, and members. Your API key targets one factory. - [Apps & integrations](https://docs.myworklayer.com/apps.md): Connect third-party apps, custom remote MCP servers, and internal REST APIs so your factory's Workers can take real action with per-tool approval guardrails. - [Rooms](https://docs.myworklayer.com/rooms.md): Isolate conversations inside a factory—one Room per ticket, customer, or work item—and read each conversation's history. - [Events](https://docs.myworklayer.com/events.md): Tell your factory what happened—from your API, Channels, or Signals—and control whether it reacts immediately, queues the work, or stores it as context. - [Channels](https://docs.myworklayer.com/channels.md): Connect your factory to places where your team already talks—like Slack—or build your own Channel on the Factory API. - [Signals](https://docs.myworklayer.com/signals.md): Stream automatic Events from connected apps—like incoming Gmail emails—straight into your factory. - [Workers](https://docs.myworklayer.com/workers.md): Workers are background tasks your factory spawns and manages on its own. Track progress, stream live output, read history, and steer them mid-flight. - [Review](https://docs.myworklayer.com/review.md): Keep humans in the loop when decisions matter. Surface approvals, questions, and app connections in your own app and resume Workers the moment someone responds. - [Subscriptions](https://docs.myworklayer.com/subscriptions.md): Receive signed HTTPS webhooks in real time whenever your factory replies, a Worker changes state, or work needs human Review. - [Worklayer MCP](https://docs.myworklayer.com/mcp/overview.md): Give Claude Code, Cursor, Codex, and other MCP clients instant access to your Worklayer apps, skills, memory, and files. - [Connect Worklayer MCP](https://docs.myworklayer.com/mcp/connect.md): Add the Worklayer MCP server to Claude Code, Claude, Cursor, VS Code, Codex, or any OAuth-capable MCP client in under a minute. - [List Rooms](https://docs.myworklayer.com/api-reference/rooms/list-rooms.md): Returns your factory's main Room and all active (non-archived) API-created Rooms, ordered by most recent activity. - [Create a Room](https://docs.myworklayer.com/api-reference/rooms/create-a-room.md): Creates a new isolated Room in your factory—for example, one Room per support ticket or customer. Pass an `externalKey` to map the Room cleanly to an ID in your own system. - [Get a Room](https://docs.myworklayer.com/api-reference/rooms/get-a-room.md): Retrieves a single Room by ID. Pass `web` as `roomId` to fetch the factory's main Room. - [Archive a Room](https://docs.myworklayer.com/api-reference/rooms/archive-a-room.md): Archives an API-created Room. Once archived, the Room is omitted from listings and all routes for that Room return `404`. Cannot archive the main Room (`web`). - [Rename a Room](https://docs.myworklayer.com/api-reference/rooms/rename-a-room.md): Updates the display name of an API-created Room. Pass `{"name": null}` to clear the name. Cannot be used on the main Room (`web`). - [Get Room History](https://docs.myworklayer.com/api-reference/rooms/get-room-history.md): Returns a Room's read-only conversation log—including user messages, Events, and factory replies. The first page returns the newest entries (ordered oldest-first within the page), and `nextCursor` paginates backward to older entries. To send new input, submit an Event. See [Room History](/rooms#room… - [Send an Event](https://docs.myworklayer.com/api-reference/events/send-an-event.md): Submits an Event to a Room. This endpoint is the programmatic Event source; Channels (Slack), Signals (Gmail), and scheduled runs are configured in the web app. Returns `202 Accepted` once persisted—factory replies arrive asynchronously via Room History and Subscriptions. Set `delivery` to `queue` (… - [Get an Event](https://docs.myworklayer.com/api-reference/events/get-an-event.md): Retrieves the full stored payload of an Event submitted to this Room through the Factory API. - [List Workers](https://docs.myworklayer.com/api-reference/workers/list-workers.md): Lists Workers in the Room, ordered by most recent activity. Returns active Workers (`running` and `waiting`) by default. In the main Room (`web`), returns all Workers across the factory; in API-created Rooms, returns only Workers spawned from that Room. - [Get Worker Messages](https://docs.myworklayer.com/api-reference/workers/get-worker-messages.md): Returns a Worker's saved message history in AI SDK `UIMessage` format. Internal execution steps and tool inputs are omitted. - [Send a message to a Worker](https://docs.myworklayer.com/api-reference/workers/send-a-message-to-a-worker.md): Sends a queued or mid-flight steering message to a Worker. The Worker executes with the factory owner's permissions. - [Stream a Worker](https://docs.myworklayer.com/api-reference/workers/stream-a-worker.md): Streams a Worker's live output as an AI SDK UI message stream over Server-Sent Events (`text/event-stream`). Sends the current assistant message state first, then incremental chunks until `data: [DONE]`. Returns `204` if the Worker is not actively running. See [Workers](/workers#stream-a-run). - [List Reviews](https://docs.myworklayer.com/api-reference/review/list-reviews.md): Lists pending Reviews (approvals, questions, and connect-app requests) waiting on human input in this Room, oldest first. - [Answer a question](https://docs.myworklayer.com/api-reference/review/answer-a-question.md): Submits answers for a pending question Review, keyed by question ID, resuming the waiting Worker. - [Approve or deny tool calls](https://docs.myworklayer.com/api-reference/review/approve-or-deny-tool-calls.md): Approves or denies all pending tool calls in an approval Review, resuming the waiting Worker. - [Get a connect-app link](https://docs.myworklayer.com/api-reference/review/get-a-connect-app-link.md): Returns a Worklayer web URL for completing a pending connect-app Review. Share or open the link for a person authorized to sign in to the app. - [List subscriptions](https://docs.myworklayer.com/api-reference/subscriptions/list-subscriptions.md): Lists all webhook Subscriptions configured on your factory, newest first (unpaginated). - [Create a subscription](https://docs.myworklayer.com/api-reference/subscriptions/create-a-subscription.md): Creates a webhook Subscription for the selected event topics across all Rooms of your factory. Save the returned signing `secret` immediately—it is shown only once. See [Subscriptions](/subscriptions). - [Get a subscription](https://docs.myworklayer.com/api-reference/subscriptions/get-a-subscription.md): Retrieves a single Subscription by ID. For security, the signing secret is never returned after creation. - [Delete a subscription](https://docs.myworklayer.com/api-reference/subscriptions/delete-a-subscription.md): Permanently deletes a Subscription and its signing secrets, canceling any pending deliveries. Subsequent requests for this ID return `404`. - [Update a subscription](https://docs.myworklayer.com/api-reference/subscriptions/update-a-subscription.md): Updates a Subscription's name, destination URL, or subscribed event topics. Changing the URL cancels any pending retry deliveries. Enabling or disabling a Subscription is managed in the web app. - [Rotate the signing secret](https://docs.myworklayer.com/api-reference/subscriptions/rotate-the-signing-secret.md): Generates a new signing secret for a Subscription. For 24 hours, deliveries are dual-signed with both the new secret and the immediately preceding secret. Send with an empty body. See [Rotate the secret](/subscriptions#rotate-the-secret). - [Room response](https://docs.myworklayer.com/api-reference/subscription-events/room-response.md): Emitted when your factory posts a user-facing response in a Room. See [Subscriptions](/subscriptions) for signature verification and retry behavior. - [Room status](https://docs.myworklayer.com/api-reference/subscription-events/room-status.md): Emitted when your factory starts (`running`) or finishes (`idle`) working in a Room. `context` Events never trigger status changes, and a `steer` Event arriving during active work does not emit a duplicate transition. See [Subscriptions](/subscriptions). - [Worker status](https://docs.myworklayer.com/api-reference/subscription-events/worker-status.md): Emitted whenever a Worker's status changes (`running`, `waiting`, `idle`, `failed`, or `stopped`). See [Subscriptions](/subscriptions) for signature verification and ordering. - [Question created](https://docs.myworklayer.com/api-reference/subscription-events/question-created.md): Emitted when a Worker pauses to ask one or more questions. Resolve via [Answer a question](/api-reference/review/answer-a-question). See [Subscriptions](/subscriptions) for signature verification. - [Approval created](https://docs.myworklayer.com/api-reference/subscription-events/approval-created.md): Emitted when a Worker pauses for tool-call approval. Resolve via [Approve or deny tool calls](/api-reference/review/approve-or-deny-tool-calls). See [Subscriptions](/subscriptions) for signature verification. - [Connect app created](https://docs.myworklayer.com/api-reference/subscription-events/connect-app-created.md): Emitted when a Worker pauses because a third-party app must be connected. Fetch the sign-in URL via [Get a connect-app link](/api-reference/review/get-a-connect-app-link). See [Subscriptions](/subscriptions) for signature verification. - [Test event](https://docs.myworklayer.com/api-reference/subscription-events/test-event.md): Sent to a single Subscription when you trigger a test delivery from the Worklayer web app. See [Subscriptions](/subscriptions) for signature verification. ## OpenAPI Specs - [openapi](/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.