Get started
Base URL
Every request goes to https://api.kirora.io under the /v1 prefix.
Common tasks
| To | Call |
|---|---|
| Create or update a contact from your app | POST /v1/contacts/identify |
| Record what someone did, so journeys can react | POST /v1/events/track |
| Send a receipt, password reset or alert, by email or push | POST /v1/transactional/messages |
| Register a device for push | POST /v1/contacts/{id}/installations |
| Send a campaign built in the dashboard | POST /v1/campaigns/{id}/send |
| Send a campaign to people you name, each with their own data | POST /v1/campaigns/{id}/trigger |
| Hear when a message is delivered, is opened or bounces | POST /v1/webhooks |
| Export what was sent, as CSV | POST /v1/messages/exports |
| Delete a contact and their history | DELETE /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"const response = await fetch('https://api.kirora.io/v1/me', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.KIRORA_API_KEY}`,
},
});
if (!response.ok) throw new Error(`Kirora API ${response.status}: ${await response.text()}`);
const { data } = await response.json();import os
import requests
response = requests.get(
"https://api.kirora.io/v1/me",
headers={
"Authorization": f"Bearer {os.environ['KIRORA_API_KEY']}",
},
)
response.raise_for_status()
data = response.json()["data"]package main
import (
"encoding/json"
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, err := http.NewRequest("GET", "https://api.kirora.io/v1/me", nil)
if err != nil {
panic(err)
}
req.Header.Set("Authorization", "Bearer "+os.Getenv("KIRORA_API_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
if res.StatusCode >= 300 {
msg, _ := io.ReadAll(res.Body)
panic(fmt.Sprintf("Kirora API %d: %s", res.StatusCode, msg))
}
var out struct {
Data json.RawMessage `json:"data"`
}
if err := json.NewDecoder(res.Body).Decode(&out); err != nil {
panic(err)
}
}using System.Net.Http.Headers;
using System.Text.Json;
using var http = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Get, "https://api.kirora.io/v1/me");
request.Headers.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("KIRORA_API_KEY"));
using var response = await http.SendAsync(request);
if (!response.IsSuccessStatusCode)
throw new HttpRequestException($"Kirora API {(int)response.StatusCode}: {await response.Content.ReadAsStringAsync()}");
using var document = JsonDocument.Parse(await response.Content.ReadAsStringAsync());
var data = document.RootElement.GetProperty("data");{
"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.
| Header | Sent on | Meaning |
|---|---|---|
X-Request-Id | Every response | This request's id; quote it to support. |
RateLimit-Limit | Every success and 429 | The requests allowed per minute: the budget of the key or of the workspace, whichever has less left. |
RateLimit-Remaining | Every success and 429 | The requests left in the current minute. |
RateLimit-Reset | Every success and 429 | Seconds until the budget refills. |
Retry-After | 429 and 503 | Seconds 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.
| Status | Meaning |
|---|---|
400 | The request was malformed or failed validation. error.code says which. |
401 | The API key is missing, malformed, revoked, or expired. |
403 | The 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). |
404 | No such resource in this workspace. A resource owned by another workspace also returns 404, never 403. |
429 | Rate limit exceeded. The Retry-After header says how long to wait. |
500 | An unexpected server error. Whether a retry is safe depends on the operation: see its retry note (x-retry). |
503 | A 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'slocalDateTime, a local time with no zone. A time you send, such assendAt, may carry an offset. - Field names are camelCase. The properties of an event you track keep the names you give them.
- Money is a
valuein major units (42.50, not4250) with an ISO 4217currency. - New fields and error codes can appear in
/v1without 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.