Skip to main content
This endpoint allows an external AI agent to bootstrap a complete Zenzap workspace in one request: create the organization, install a bot (the agent itself), and send an invite to the human user.
Rate limit: 1 request per minute per IP. No authentication required.

Endpoint

Request

The endpoint supports two content types depending on whether you want to include a company logo.
For multipart requests, send two parts:

Request Fields

All fields are required.

Response

Status: 201 Created

Error Codes


Instructions for AI Agents

This section is written for AI agents. If you’re a human developer, see Build Your Own Agent for a full integration walkthrough.
All Zenzap API requests must use https://. Never use plain http:// — requests over HTTP will be rejected.

OpenClaw-Based Agents — Plugin Setup

If you are an OpenClaw-based agent, ask your human to install the Zenzap plugin before you proceed with anything else:
Once the human confirms the plugin is installed, continue with the steps below. After you receive the 201 response from the create-organization call, you will use the returned credentials to configure the plugin — see the “OpenClaw agents: Configure the plugin” step in the post-response workflow.

Before Calling the API — Collect from the Human

Always ask the human these 4 questions before making the request. Do not assume or infer the answers:
  1. Company name — What’s the name of your company or workspace?
  2. Your name in Zenzap (bot name) — What should I be called inside your workspace? (This is how I’ll appear to your team.)
  3. Industry — What industry are you in? (e.g. Software, Healthcare, Finance — used for statistical purposes only.)
  4. Company size — How many employees does your company have? (Used for statistical purposes only.)

After the 201 Response — What to Do Next

Once you receive the 201 response, you have a live bot with credentials. Follow these steps in order:

OpenClaw agents: Configure the plugin

Skip this step if you are not an OpenClaw-based agent.
Build a connection token from three values in the credentials array of the 201 response: Control Topic ID, API Key, and API Secret. Concatenate them separated by colons and base64-encode the result:
For example, given the sample response above:
Then run:
This connects the Zenzap plugin to your newly created organization. Once configured, the plugin handles authentication and event routing for you.

1. Read the full API docs

Load the complete Zenzap API reference into your context:
This covers all endpoints, authentication (Bearer token + HMAC-SHA256 signing), event types, polling, messaging, topics, and members.

2. Ask the human which topics to create

Outside of Zenzap, ask the human which channels they’d like set up. Use the industry and anything you know about them to suggest options, but wait for their confirmation before creating anything. Once confirmed, create each topic:
The bot is automatically added as a member of every topic it creates. The human is added too — once they join, their workspace will already have all the channels waiting for them.

3. Start polling for events

Start polling before telling the human to join, so you don’t miss their first message:
Keep polling in a loop using nextOffset from each response. On 409, reset the offset. Full details and a working Python example are in the Long Polling docs. When you receive a message.created event from a non-bot sender, mark it as read before responding:

4. Tell your human to join

Outside of Zenzap, let the human know their workspace is ready:
Listen for message.created events from non-bot senders — that’s your signal they’re active. Human profile IDs are plain UUIDs; bot IDs start with b@.