API referenceMenu
On this page

API reference

The Kirora API lets you sync contacts and events from your product, send transactional email and push notifications, run campaigns and journeys, and hear what happened through signed webhooks. It’s a REST API over HTTPS: JSON in and out, resource URLs under /v1, a bearer API key, and standard HTTP status codes.

Not a developer? The guides cover everything you can do from the dashboard.

Building with an AI assistant? Every guide, endpoint and SDK page has a Markdown copy, llms.txt lists them all, and the MCP server lets an assistant work in your workspace with an agent key.

Get started

  1. 1Create an API key Under Developer › API keys, with only the scopes your code needs.
  2. 2Make your first request Check your key, send a test email and read back what happened to it.
  3. 3Handle API responses and errors Errors, rate limits, idempotency and pagination.

Base URL

Every request goes to https://api.kirora.io under the /v1 prefix.

Common tasks

ToCall
Create or update a contact from your appPOST /v1/contacts/identify
Record what someone did, so journeys can reactPOST /v1/events/track
Send a receipt, password reset or alert, by email or pushPOST /v1/transactional/messages
Register a device for pushPOST /v1/contacts/{id}/installations
Send a campaign built in the dashboardPOST /v1/campaigns/{id}/send
Send a campaign to people you name, each with their own dataPOST /v1/campaigns/{id}/trigger
Hear when a message is delivered, is opened or bouncesPOST /v1/webhooks
Export what was sent, as CSVPOST /v1/messages/exports
Delete a contact and their historyDELETE /v1/contacts/{id}

Authentication

Send a scoped API key as a bearer token. Each endpoint page names the scope it needs and the kinds of key it accepts; a key without that scope gets a 403. Keys come in three kinds:

  • Integration keys, for your own systems.
  • Agent keys, for AI tools, which can read and draft but never send.
  • Partner keys, which act in the workspaces a platform manages for its customers.

See authentication.

curl https://api.kirora.io/v1/me \
  -H "Authorization: Bearer $KIRORA_API_KEY"
Response · 200
{
  "data": {
    "workspace": {
      "id": "0192f3a0-0000-7000-8000-000000000001",
      "name": "Acme Shop"
    },
    "apiKey": {
      "id": "0192f3a0-0000-7000-8000-000000000002",
      "name": "Shop backend",
      "kind": "integration",
      "source": "http_api",
      "scopes": [
        "contacts:read",
        "contacts:write",
        "events:write"
      ]
    }
  }
}

Responses

Most requests and responses are JSON. Uploads, file downloads and empty 204 responses say so on their pages. Successful responses carry the payload under data, with meta where there is more to say, such as the next page’s cursor. Errors replace data with error, whose code is stable and safe to branch on. Lists are cursor-paginated (see pagination), and 62 POST endpoints can take an Idempotency-Key, and POST /v1/campaigns/{id}/trigger requires one (see idempotency).

Endpoints send the headers below where they apply, so an endpoint’s page lists only its own, such as Location on a 201. How to pace requests with the RateLimit-* headers is under rate limits.

HeaderSent onMeaning
X-Request-IdEvery responseThis request's id; quote it to support.
RateLimit-LimitEvery success and 429The requests allowed per minute: the budget of the key or of the workspace, whichever has less left.
RateLimit-RemainingEvery success and 429The requests left in the current minute.
RateLimit-ResetEvery success and 429Seconds until the budget refills.
Retry-After429 and 503Seconds to wait before trying again.

Status codes

2xx means it worked; each endpoint page says which one it returns. Every endpoint can also return the errors below, so they are listed here once rather than on every page.

StatusMeaning
400The request was malformed or failed validation. error.code says which.
401The API key is missing, malformed, revoked, or expired.
403The key is valid but may not do this. error.code says why: SCOPE_MISSING (the key lacks the scope details.requiredScope names), AGENT_KEY_REFUSED (an agent key on an operation agent keys may not perform), API_KEY_IP_NOT_ALLOWED or FORBIDDEN (this caller may not do this), or a rule that refuses the action (the plan, consent, suppression, the workspace state).
404No such resource in this workspace. A resource owned by another workspace also returns 404, never 403.
429Rate limit exceeded. The Retry-After header says how long to wait.
500An unexpected server error. Whether a retry is safe depends on the operation: see its retry note (x-retry).
503A dependency is temporarily unavailable. Retry after Retry-After when it is sent, otherwise with backoff.

error.code says what went wrong. Errors lists all 59 codes, what each means and which are worth retrying.

Conventions

  • Resource IDs are UUIDs that Kirora assigns. Your own ID for a contact goes in externalId.
  • Timestamps are ISO 8601. Kirora returns them in UTC (2026-10-23T09:30:00Z), except a campaign's localDateTime, a local time with no zone. A time you send, such as sendAt, may carry an offset.
  • Field names are camelCase. The properties of an event you track keep the names you give them.
  • Money is a value in major units (42.50, not 4250) with an ISO 4217 currency.
  • New fields and error codes can appear in /v1 without notice, so ignore any you don’t recognise. See versioning and the changelog.

Rate limits

Each API key, and each workspace across all its keys, has a budget of requests a minute. Transactional sends and contact batches draw on a larger one, and tracked events on the largest. Responses say how much is left in their RateLimit-* headers; past a limit you get a 429, so wait for its Retry-After. Rate limits gives the defaults.

Testing

There’s no separate test mode. Run your tests in a staging workspace with its own keys, and send to addresses at example.com, which are reserved: nothing is delivered. [email protected], [email protected] and [email protected] act out that outcome and send the matching webhook, marked simulated.

SDKs and libraries

Every endpoint page shows its request in cURL, Node.js, Python, Go and .NET. Typed server libraries, the React builders and the CLI are listed under SDKs, with their release status. Until a library for your language is published, call the API directly.

Endpoints

187 endpoints in 25 areas, and 16 webhook events. Each area opens with what it is and its main object.

Data in

  • Contacts20 endpoints

    A contact is one person you can message, with their profile, custom attributes, consent on each channel and topic choices.

  • Events10 endpoints

    An event is something a contact did, such as Order Completed, with properties describing it.

  • Lists8 endpoints

    A list is a fixed set of contacts you add and remove yourself; its membership changes only when you change it.

  • Segments10 endpoints

    A segment is an audience described by rules, such as "ordered twice in 90 days", evaluated when it is used.

  • Topics5 endpoints

    A topic is a kind of marketing a contact can choose, such as product updates, and a topic choice is their choice for it on every channel or one.

  • Attributes3 endpoints

    Attributes are the custom fields your contacts carry, such as plan or orders, discovered from the values you send.

  • Tags5 endpoints

    A tag is a label on campaigns, journeys, segments and templates, such as "Black Friday", for filtering lists and reports.

Messaging

  • Transactional messages3 endpoints

    Transactional messages are one-off email or push sends to one recipient, such as receipts and password resets, that a person needs whatever their marketing choices.

  • Campaigns20 endpoints

    A campaign is one marketing send to an audience, a list or a segment, at once or at a scheduled time.

  • Journeys13 endpoints

    A journey is an automation that contacts enter on a trigger, such as an event or joining a list, and move through step by step over time.

  • Conversion goals6 endpoints

    A conversion goal says what counts as a result for a campaign or a journey: an event, such as an order, done within a window after one of its messages, with an event property summed as revenue.

  • Templates15 endpoints

    A template is a reusable email design: a document of blocks and a theme, saved as a draft and published as numbered versions.

  • Shared blocks6 endpoints

    A shared block is a block kept once and placed in many templates, such as a footer or a product card.

  • Assets6 endpoints

    An asset is an image you upload for a template's image blocks, served from a public URL.

  • Forms12 endpoints

    A form is a hosted sign-up, contact or waitlist form that creates or updates contacts and records the consent they give.

Delivery

  • Messages7 endpoints

    The message log holds every message Kirora sent or tried to send, from campaigns, journeys and transactional sends, with what became of it.

  • Suppressions3 endpoints

    A suppression is a block on an email address, held whether or not a contact has it, with its reason.

  • Sending domains7 endpoints

    A sending domain is a domain your email is sent from, with the DNS records that prove you own it.

  • Senders1 endpoint

    A sender is a From address the workspace has saved, on one of its sending domains, with one default that new emails start with.

  • Push projects1 endpoint

    A push project is a product whose iOS, Android and web apps receive push, with whether each can send.

  • Webhooks11 endpoints

    A webhook is an endpoint of yours that receives Kirora's events, such as message.delivered.

  • Reports5 endpoints

    Reports show how sending performs: the workspace overview, a comparison of campaigns, transactional delivery and conversion funnels.

Platform

  • API key1 endpoint

    These operations return the calling API key, its scopes and its workspace.

  • Workspaces8 endpoints

    Partner workspaces let a platform offer messaging to its own customers, one workspace per customer, created and run with a partner key and the Kirora-Workspace header.

  • Embed sessions1 endpoint

    Embed sessions let a partner's customers use Kirora's segment and email builders inside the partner's app for 15 minutes, without a key of their own.

  • Webhook events16 events

    What Kirora sends to your endpoints, signed and retried.