TryzenAPI

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

  1. In the Tryzen app, open API in the sidebar and choose Create key.
  2. Name it after the integration (for example "CRM sync, production").
  3. Pick the scopes it needs (below).
  4. 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:

ScopeLevelFor
sendersmanageConnect accounts, change their settings, warm-up and ambient browsing
leadsmanageProfile lookups, the blacklist, lists and imports
campaignsmanageDirect actions (/v1/actions) and campaigns
networkviewConnections and pending invitations
inboxviewConversations and messages
inboxReplyonReplying in a conversation
integrationsmanageWebhooks and their deliveries

Authenticate

Send the key in the x-api-key header on every request:

Check your key
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:

HeaderMeaning
RateLimit-LimitRequests allowed in the window
RateLimit-RemainingRequests left in the current window
RateLimit-ResetSeconds until the window frees up
RateLimit-Policy300;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.

On this page