Turtini

Generating an API key for the public REST API

Turtini exposes a public REST API at api.turtini.com that external systems can use to read AND write your org's data: CRM records, articles, events and ticketing, notes, accounting, projects, property and more. Authentication is via Bearer token — your org generates the keys, scopes each one, and revokes them whenever you want.

Public API reference (every operation with its scope, request and response shape, and curl, SDK and CLI examples): https://turtini.com/docs/api

(This is different from the Partner Portal CLI key, which authenticates the turtini-dev CLI for module publishing. The two key systems are independent.)

To create a key:
1. Go to Settings → Partner Dev → API Keys (org owners and admins only)
2. Click + New API Key
3. Give it a name (e.g. "Marketing site", "Zapier", "Internal data warehouse")
4. Pick the scopes — the minimum the key needs to do its job. The picker is laid out as a per-module read/write grid (contacts:read, contacts:write, events:read, ticketing:write and so on), plus:
- *:read — every scope ending in :read (use sparingly)
- *:write — every scope ending in :write; it does not include reads (use sparingly)
- tools:read / tools:write — run Developer Console commands over /v1/run
- context:read — natural-language questions about the org
- email:send — send email through Turtini's pipeline; no wildcard covers it
Each operation on https://turtini.com/docs/api names the exact scope it needs.
5. Optionally set an IP allowlist so the key only works from your servers. Each entry is one exact IP address (ranges are not supported), and a key with an allowlist is refused whenever the caller's address cannot be determined.
6. Click Create

The plaintext key is shown ONE TIME on a confirmation screen — copy it immediately into your secret manager. We only store the SHA-256 hash; if you lose the plaintext, you have to revoke the key and create a new one.

Using the key (read):
curl https://api.turtini.com/v1/articles \
-H "Authorization: Bearer turtini_<your-key>"

Verifying a key from your code:
curl https://api.turtini.com/v1/auth/verify \
-H "Authorization: Bearer turtini_<your-key>"
Returns the bound orgId, orgName, orgSlug, keyId, and the scopes the key carries — handy for rendering "you're connected as <Org>" in your integration's UI.

Pagination: pass ?limit=N (default 100, max 500) and ?pageToken=<next> using the cursor returned in the previous response.

Refusals: a missing, unknown or revoked key, or one without the scope an operation needs, gets 401. The response does not say which check failed.

Monitoring: each key shows its last-used time and today's and this month's request counts. If a key shows unexpected traffic, revoke it.

Revoking: click Revoke on any key. Every request looks its key up, so the next request with it gets 401.

Related:
• "Writing data through the public API" — covers POST endpoints + Idempotency-Key
• "@turtini/sdk — typed Public API client for Node, browser, and Deno"
• "@turtini/mcp — letting AI-IDE agents collaborate with your org"