Skip to content

The public API: keys, limits, what it does and the documentation

Included from the Business plan (otherwise 403 plan_required). Create a key in Settings › Public API, use it, what the API reads and writes (contacts, companies, deals, tasks, webhooks), the limits, and where the full documentation lives.

5 min read Written for Saalz V3

On this page

The public API is included from the Business plan. On another plan (Free, Growth, Scale), every call answers 403 plan_required: it is not your key or your tool, it is the plan. You can prepare your keys and webhooks before changing plan; they work as soon as the plan includes the API.

Saalz's REST API lets you read and write your contacts, companies, deals and tasks from your own tools. The full documentation, with examples, is public: app.saalz.com/public/api/docs/. This article gives what you need to start; the documentation remains the reference.

Creating a key#

An administrator opens Settings › Public API (the entry only shows to administrators) and clicks Create key. The window asks for:

  • a Name ("Zapier", "Website"): what the key is for;
  • the Access: Read only (read contacts, businesses, deals and tasks) or Read and write (create, update and delete records too);
  • Expires: Never, or in 30, 90 or 365 days;
  • Allowed IP addresses (optional): one IP address or CIDR network per line; left empty, every address is allowed.

The key (it starts with sk_live_) is shown once. Copy it straight into your secrets manager: Saalz keeps only a fingerprint and cannot show it again. If it is lost, revoke it and create another.

Settings › Public API: the keys and the documentation

Using it#

Add it to the Authorization header of every call, with the word Bearer:

Authorization: Bearer sk_live_…

The API's address is shown under Base URL, in the screen's Documentation card; Try it from a terminal gives a ready-made command that describes your key, your company and your limits.

The key acts as the administrator who created it: it sees the same workspaces, groups and records they do, and nothing more. If that administrator is deactivated or leaves the company, the key stops working (401 key_owner_inactive): another administrator creates a new one. Answers are JSON.

What the API can read and write#

ResourceWhereWhat you can do
Your key, the company, the users, the workspaces, the groups and their fields, the pipelines, the task typesyour accountread
Contactsin a groupread, create, update, delete; search by text, exact e-mail, owner, creation date
Companiesin a groupthe same operations as contacts
Deals (deals)in a workspaceread, create, update, delete; filter by status (open, won, lost), pipeline, owner, contact, company
Tasks (activities)in a workspaceread, create, update, delete; filter by done or not, assignee, due date, contact, deal
Webhooksyour accountcreate, update, test, see the deliveries

Lists come in pages (25 records by default, 100 at most). Rights and visibility are the app's: a record the key's administrator cannot see in Saalz does not exist for the API. What the API creates or changes shows in the app at once.

The limits#

They protect your account and the platform, and every answer carries them in its headers (X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset).

  • 120 calls per minute per key, 10,000 calls per day for your company. Beyond that the answer is 429 with a Retry-After delay.
  • 10 active keys and 10 webhooks per company.
  • A request body of 1 MB at most, 100 records per page at most.
  • Your plan's limits apply too: when one is reached, the answer is 402 with the details.

The screen's Usage card shows the requests of the last 30 days, the errors and the rate-limited calls, day by day and key by key.

Revoking a key#

On the same screen, Revoke cuts the key at once, after a confirmation. Calls that use it get 401 key_revoked (401 key_expired for a key past its expiry). Revoke any key you suspect has leaked; create one key per tool so you can cut only one.

Webhooks#

To be told when a record is created, changed or deleted, click Add webhook (or use the API):

  • an https address reachable from the Internet, answering within 5 seconds;
  • the Events to receive: a contact, company, deal or task created, updated or deleted (for example opportunity.created).

The signing secret is shown once: it checks the Saalz-Signature header of every delivery. Test sends a test event, Deliveries shows the latest ones. A refused delivery is retried; after 25 failures in a row the webhook is disabled. A webhook only sends the records its creator can see.

Zapier, Make, n8n#

These tools connect to Saalz through the API and its webhooks: an HTTP (or "webhook") module of your scenario calls the API with a key, and a Saalz webhook triggers the scenario when a record changes (for example opportunity.created on every new deal, to add a row in Google Sheets). Saalz has no ready-made app in their catalogues: you need the Business plan and an API key.

There is no direct integration with Pipedrive or Salesforce today: a Zapier, Make or n8n scenario can bridge the two through the API. What exists as integrations: Integrations.

An error? The most common codes#

  • 401 invalid_api_key: the key was copied wrong, or sent without the word Bearer.
  • 403 plan_required: the plan does not include the API (see above).
  • 403 insufficient_scope: a Read only key tries to write.
  • 403 ip_not_allowed: the call comes from an address outside the key's list.
  • 403 account_suspended: the account is suspended (payment or subscription).
  • 429 rate_limited: too many calls; wait for the Retry-After delay.

Every error carries a request_id: give it when you ask for help.

Worth knowing#

  • The documentation (/public/api/docs/) needs no account; the OpenAPI file (/public/api/v1/openapi.json, OpenAPI (JSON) button) imports into Postman, Insomnia or a client generator.
  • The old personal token ("Token") is no longer shown, and the public API does not accept it: create a key.
  • Never paste a key into a support conversation.

Ask a question about this article

Opens the assistant with this article in context. Nothing is sent for you.

Ask the assistant