Quickstart
Create an API key, choose its scopes, and make your first call.
Workspaces and keys
Everything in Tryzen lives in a workspace: its senders, leads, conversations, campaigns and webhooks. An API key belongs to one workspace and acts only there.
If your product serves several customers, give each customer their own workspace and one key
per workspace. Store the workspaceId and the key next to the customer on your side.
Create a key
- In the Tryzen app, open API in the sidebar and choose Create key.
- Name it after the integration (for example "CRM sync, production").
- Pick the scopes it needs (below).
- Copy the key. It starts with
nrk_and is shown only once: Tryzen stores a hash of it, not the key itself.
A key can never hold more access than the person who created it, and it can't create or revoke
API keys itself. Revoking the key in the app stops it at once, and a key stops working
(401 api_key_inactive) if its creator loses access to the workspace.
Treat a key like a password. Keep it in your secret store, never in a browser, a mobile app, a ticket or a committed file.
Scopes
Each area takes none, view or manage (network and inbox are view-only areas). An outreach
integration usually needs:
| Scope | Level | For |
|---|---|---|
senders | manage | Connect accounts, change their settings, warm-up and ambient browsing |
leads | manage | Profile lookups, the blacklist, lists and imports |
campaigns | manage | Direct actions (/v1/actions) and campaigns |
network | view | Connections and pending invitations |
inbox | view | Conversations and messages |
inboxReply | on | Replying in a conversation |
integrations | manage | Webhooks and their deliveries |
Authenticate
Send the key in the x-api-key header on every request:
curl -s "$TRYZEN_API/v1/api-keys/current" -H "x-api-key: $TRYZEN_KEY"The answer names the key, its workspace, its scopes, what it can do right now and its rate limit:
{
"apiKey": { "id": "…", "name": "CRM sync, production", "prefix": "nrk_…", "scopes": { "…": "…" } },
"orgId": "…",
"workspaceId": "…",
"permissions": { "senders": "manage", "campaigns": "manage", "inboxReply": true, "…": "…" },
"rateLimit": { "limit": 300, "windowSeconds": 60 }
}permissions is what the key can do now: its scopes, capped by its creator's current role.
Your first real call
List the workspace's LinkedIn accounts:
curl -s "$TRYZEN_API/v1/senders" -H "x-api-key: $TRYZEN_KEY"No senders yet? Connect one first.
Rate limits
Each key may make 300 requests per minute (a sliding window). Every keyed answer carries:
| Header | Meaning |
|---|---|
RateLimit-Limit | Requests allowed in the window |
RateLimit-Remaining | Requests left in the current window |
RateLimit-Reset | Seconds until the window frees up |
RateLimit-Policy | 300;w=60 |
Over the limit you get 429 rate_limited with a Retry-After header (seconds). Wait that long
before the next call; don't retry in a tight loop.
Fields that take a list (ids, values) accept at most 100 items per request through a key
(400 batch_too_large).
Responses and errors
Successful answers are JSON objects named after what they hold ({ "sender": … },
{ "action": …, "created": true }). Errors always look like this:
{ "ok": false, "error": { "code": "sender_not_connected", "message": "…" } }Branch on code; show message to people. See Errors.