AI assistants can work in your workspace through the Kirora MCP server, from any MCP client: read your contacts and results, build segments, write campaigns, templates and journeys. They cannot send anything until a person in your team says so.
1 Create an agent key
In the dashboard, open Developer → Agent access → Create agent key and pick what it may read (contacts, campaigns and their reports, templates, journeys) and build (campaigns, templates, journeys). Copy the key; it is shown once.
An agent key cannot send, schedule or activate anything, nor change contacts or their consent (so it cannot delete a topic, which deletes every contact’s choices on it). A campaign or journey it wrote or edited waits for an admin or owner to confirm it in the dashboard before anyone can send or activate it. The API enforces this, whatever client holds the key; see Authentication for the details.
Three more things to know before an agent edits your data:
- Changing a segment’s rules takes back what depends on it. When an agent changes the
rulesof a segment, every scheduled campaign that uses it (directly or through other segments) is unscheduled, every active journey that uses it is paused, and each goes back to waiting for a person to confirm. Admins are notified. A person approved those sends for the audience they saw, and the new rules change who that is. - Templates stay drafts. A template an agent writes, or a copy of one, is not live until a person publishes it with a confirmation. An agent key gets 403 on the template test send, on publishing and on restoring a version.
- Forms stay drafts. An agent can create a form and edit a draft one, but a person
publishes it: a live form signs contacts up into its list and topics at once. An agent
key gets 403 on
publishFormandunpublishForm, on any change to a published form, and on unarchiving one. To let an agent rework a live form, unpublish it.
An agent can still delete sending domains that nothing sends from (one in use is
refused with 409 IN_USE) and create message exports that include recipient
addresses, if the key holds those scopes. A connected app (signing in with
OAuth instead of a key) acts as an agent key, limited to what the member who approved it
may do. See Authentication.
2 Connect your assistant
The MCP server is at https://api.kirora.io/mcp, over
Streamable HTTP, with the key as a bearer token.
Most MCP clients read a configuration like this, with the server’s URL and the key as a header:
{
"mcpServers": {
"kirora": {
"url": "https://api.kirora.io/mcp",
"headers": { "Authorization": "Bearer kirora_..." }
}
}
}A client you configure from the command line takes the same URL, the transport (HTTP)
and the Authorization header as options; see its own documentation for their names.
Add ?redactContactFields=true to the URL to replace contacts’ names and custom
attributes with a placeholder in everything the assistant reads. Those fields are typed by
the public into your forms, so they are the one place a stranger’s text could reach
the model; personalisation still works, because merge tags are filled in at send time.
3 Ask it
Paste this to start:
What the server offers
- Every
/v1operation, throughlist_api_endpoints,describe_api_endpoint,read_api,write_apianddelete_api, so nothing the API can do is out of reach, and an invented path is refused with a usable message. - A few named tools where guidance matters:
create_campaignandupdate_campaign(they explain the merge-tag rules and take atemplateId),find_contact, andpreview_segmentto count an audience before proposing a campaign.
Failures come back with the HTTP status and the error body, so an assistant can correct a request and try again.
Reading the docs
These guides are published as plain Markdown, each page at its own .md address, with an
index for language models at /llms.txt. Point an assistant at the index when
it needs to know how something works.