{"openapi": "3.0.3", "info": {"title": "Saalz API", "version": "2026-10-01", "description": "# Introduction\n\nThe Saalz API lets your own code read and write the records of your CRM:\npeople, businesses, opportunities, tasks, and the webhooks that tell you when\nthey change. It is a plain JSON REST API over HTTPS.\n\nBase URL: `https://app.saalz.com/public/api/v1`. Current version: `v1` (`Saalz-API-Version: 2026-10-01`).\n\nEverything under `/api/` and `/api/v2/` of the application is internal: it\nchanges with the screens and carries no compatibility promise. Only\n`/public/api/v1/` is meant for your code.\n\n# Authentication\n\nEvery call carries an API key as a bearer token:\n\n```\nAuthorization: Bearer sk_live_<32 characters>\n```\n\n- Keys are created by an administrator in **Settings › Public API**\n  (`/public/api/`). The full key is shown **once**, at creation; only a hash\n  is stored. Copy it to a secret store right away.\n- A key **acts as the administrator who created it**: every read and write\n  goes through the product's own permissions, licences and workspace scoping.\n  A key can never do what its owner cannot.\n- Scopes: `read` (GET) and `write` (POST, PATCH, DELETE). A call without the\n  scope it needs answers `403 insufficient_scope`.\n- A key may carry an expiry date and an IP allow-list (exact IPs or CIDRs).\n- At most 10 active keys per company.\n- The legacy per-user token (`Authorization: Token …`) is **not** accepted here.\n\nCheck a key with `GET /me`: it returns the key, the company, the user it acts\nas, the plan and the limits in force.\n\n# Conventions\n\n- JSON only, UTF-8. Send `Content-Type: application/json` with every body.\n- Ids are integers. Dates are `YYYY-MM-DD`; datetimes are ISO 8601 in UTC\n  (`2026-10-02T14:03:00Z`).\n- Single objects come back bare (no envelope). `POST` answers `201` with the\n  created object, `DELETE` answers `204` with no body.\n- Every response carries `X-Request-Id`. You may send your own\n  (`X-Request-Id: <8-64 chars of [A-Za-z0-9._-]>`) and it is echoed back; quote\n  it to support.\n- Every response carries `Saalz-API-Version: 2026-10-01`.\n- Trailing slashes are optional and never redirected.\n\n## Versioning and deprecation\n\nThe version is in the path (`/v1/`). Additive changes — new fields, new\nendpoints, new enum values, new webhook events — are not breaking; write your\nclient so an unknown key is ignored. A breaking change ships as `/v2/`; `/v1/`\nstays available for at least 12 months afterwards, announced by `Deprecation`\nand `Sunset` headers on the old routes.\n\n# Rate limits\n\n| limit | value |\n|---|---|\n| requests per key per minute | 120 |\n| requests per company per day (all keys) | 10000 |\n| request body | 1 MiB |\n| page size | 1–100 (default 25) |\n| `ids` filter | 100 ids |\n| active keys per company | 10 |\n| webhook endpoints per company | 10 |\n| webhook deliveries per company per day | 20000 |\n\nEvery response carries `X-RateLimit-Limit`, `X-RateLimit-Remaining`,\n`X-RateLimit-Reset` (unix seconds) and `X-RateLimit-Scope` (`minute` or `day`,\nwhichever is closest to exhaustion). When a limit is exceeded the API answers\n`429 rate_limited` with `Retry-After` (seconds): wait that long, then retry.\nUnauthenticated calls are limited to 30 per IP per minute.\n\n# Errors\n\nEvery error has the same envelope and a stable `code`. `message` is for\nhumans and may change; `details` (optional) names the offending keys, e.g.\n`{\"fields.email\": [\"Expected a string.\"]}`.\n\n```json\n{\n  \"error\": {\n    \"code\": \"validation_error\",\n    \"message\": \"The request is not valid.\",\n    \"details\": {\"fields.email\": [\"Expected a string.\"]},\n    \"request_id\": \"5f1c…\"\n  }\n}\n```\n\n| status | code | meaning |\n|---|---|---|\n| `400` | `over_max_credits` | A reveal could cost more than `max_credits`; `details.most_credits` says how much. Nothing was spent. |\n| `401` | `invalid_api_key` | The key is unknown or malformed. |\n| `401` | `key_expired` | The key's expiry date has passed. |\n| `401` | `key_owner_inactive` | The user the key acts as was deactivated. |\n| `401` | `key_revoked` | The key was revoked in Settings. |\n| `401` | `unauthorized` | No `Authorization: Bearer` header. |\n| `402` | `insufficient_credits` | Not enough credits on the account for this search or reveal. Nothing was spent. |\n| `402` | `limit_reached` | A plan limit (free-plan contacts) is reached. |\n| `403` | `account_suspended` | The company account is suspended (payment or subscription issue). |\n| `403` | `forbidden` | The key's owner may not do this in the product either. |\n| `403` | `insufficient_scope` | The key lacks the `read` or `write` scope this call needs. |\n| `403` | `ip_not_allowed` | The caller's IP is not in the key's allow-list. |\n| `403` | `no_licence` | The key's owner has no active licence on this workspace. |\n| `403` | `plan_required` | The plan does not include API access. |\n| `404` | `not_found` | No such route or object (also for another company's ids). |\n| `405` | `method_not_allowed` | The route does not accept this method. |\n| `409` | `conflict` | The write conflicts with the current state. |\n| `413` | `payload_too_large` | The body exceeds 1 MiB. |\n| `415` | `unsupported_media_type` | The body is not `application/json`. |\n| `422` | `idempotency_mismatch` | Same `Idempotency-Key`, different body. |\n| `429` | `rate_limited` | Too many requests; honour `Retry-After`. |\n| `429` | `search_quota_reached` | The account's people searches for the month are used up. |\n| `500` | `internal_error` | Our fault; quote `request_id` to support. |\n| `503` | `api_disabled` | The API is switched off for maintenance; retry later. |\n| `503` | `search_unavailable` | People search or reveal is unavailable at the moment; retry later. Nothing was spent. |\n\nA `404` is also what you get for an id that belongs to another company:\nexistence is never disclosed. A `500` is logged with its request id; quote it\nto support.\n\n# Pagination\n\nLists of records (persons, businesses, opportunities, activities) are\npaginated by cursor:\n\n```\nGET /workspaces/1/groups/2/persons?limit=25&after=<cursor>\n```\n\n```json\n{\"data\": [...], \"meta\": {\"limit\": 25, \"has_more\": true, \"next_cursor\": \"aWQ6MTIz\"}}\n```\n\n`limit` is 1–100. Rows are ordered by `id` ascending; the cursor is\nopaque and stays valid while rows are added. Follow `meta.next_cursor` (or the\n`Link: <…>; rel=\"next\"` header) until `has_more` is `false`. The small\ndiscovery lists (`/users`, `/workspaces`, groups, fields, pipelines, activity\ntypes, webhooks) are not paginated: they answer `{\"data\": [...]}`.\n\n# Idempotency\n\nSend `Idempotency-Key: <up to 128 characters>` on a `POST` to\nmake a retry safe. The first answer is stored for 24 hours\nand replayed to the same API key on the same address (with `Idempotent-Replayed: true`).\nThe same key with a different body answers `422 idempotency_mismatch`. Use a\nrandom UUID per logical creation.\n\n# The field model\n\nA person or a business is a flat object: `{\"fields\": {\"first_name\": \"Ada\", …}}`.\nThe keys are the fields of the **group** (each group has its own schema; the\ndefaults are shared). Read it once with\n`GET /workspaces/{workspace_id}/groups/{group_id}/fields?module=person|business`:\n\n```json\n{\"id\": 41, \"key\": \"first_name\", \"name\": \"first name\", \"type\": \"text\",\n \"module\": \"person\", \"is_default\": true, \"is_required\": false,\n \"read_only\": false, \"options\": [], \"labels\": []}\n```\n\n- `key` is the field name slugified (`\"job position\"` → `job_position`). A\n  custom field whose slug collides with another field of the group gets\n  `<slug>_<id>`.\n- Default person fields: `first_name`, `last_name`, `email`, `phone`,\n  `job_position`, `source`, `city`, `school`, `linkedin`, `tags`, `status`,\n  `created`, `owner`, `is_enriched`, `email_verification_*`. Default business\n  fields: `name`, `email`, `phone`, `address`, `country`, `city`,\n  `postal_code`, `website`, `is_enriched`.\n- `read_only` fields (`created`, `is_enriched`, `email_verification_*`,\n  `owner`, `source`) are refused on write; `owner` is set with the top-level\n  `owner_id`, `source` is stamped `api` by the API.\n- An unknown key answers `400 unknown_field` (the message names the fields\n  endpoint). Writing `null` clears a value. A `multi` or `checkbox` write\n  replaces the whole list.\n- A business field written on a person (`website`, `address`, …) is written on\n  its business, as the product does; a person with no business gets one.\n\n| type | read | write accepts |\n|---|---|---|\n| `text`, `textarea`, `url` | string | string |\n| `number` | integer | integer |\n| `date` | `\"2026-10-02\"` | same |\n| `datetime` | `\"2026-10-02T14:03:00Z\"` | ISO 8601 |\n| `radio` | option name or `null` | option name (case-insensitive), option id, or `null` |\n| `checkbox` | `[\"hot\", \"client\"]` | list of option names or ids |\n| `multi` | `[{\"value\": \"a@b.c\", \"label\": \"work\"}]` | a string (label `work` when it exists, else the first label), a list of strings, or a list of `{\"value\", \"label\"}` |\n| `extra_user` | `{\"id\", \"first_name\", \"last_name\", \"email\"}` | user id |\n| `extra_person`, `extra_business` | `{\"id\"}` | id |\n\n# Free-plan limits\n\nOn the free plan the number of contacts is capped at 5,000 across all the\ncompany's workspaces. Creating a person beyond the cap answers\n`402 limit_reached`; `details` carries `limit`, `current` and `upgrade_url`.\nThe same cap applies on screen.\n\n# Webhooks\n\nA webhook endpoint receives an HTTPS `POST` for every event it subscribes to.\nCreate one with `POST /webhooks`; the `secret` (`whsec_…`) is returned **only\nin that answer**.\n\nEvents: `person.created`, `person.updated`, `person.deleted`,\n`business.created`, `business.updated`, `business.deleted`,\n`opportunity.created`, `opportunity.updated`, `opportunity.deleted`,\n`activity.created`, `activity.updated`, `activity.deleted`, and `ping` (sent\nby `POST /webhooks/{id}/test`). `*.updated` fires at most once per object per\n5-second window: field writes are coalesced.\n\n```json\n{\"id\": \"evt_…\", \"type\": \"person.updated\", \"created_at\": \"2026-10-02T14:03:00Z\",\n \"api_version\": \"2026-10-01\", \"company_id\": 1, \"workspace_id\": 1,\n \"data\": { \"…the object in its API shape…\": \"\" }}\n```\n\n`*.deleted` carries `{\"id\": …}` only. Headers: `Saalz-Event`,\n`Saalz-Delivery-Id`, `User-Agent: Saalz-Webhooks/1.0` and the signature.\n\nAn endpoint acts for the user who created it, like that user's API keys: it\nreceives an event only for a record that user can read through the API (their\nworkspaces and groups, and only their own records when their licence is\nlimited to their own data).\n\n## Verifying the signature\n\n`Saalz-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256(secret, \"<t>.<raw body>\")>`.\nCompute the HMAC over the **raw** body (not a re-serialised JSON), compare in\nconstant time, and reject timestamps older than a few minutes.\n\n```python\nimport hmac, hashlib, time\n\ndef verify(secret: str, header: str, raw_body: bytes, tolerance=300) -> bool:\n    parts = dict(p.split(\"=\", 1) for p in header.split(\",\"))\n    t, v1 = parts[\"t\"], parts[\"v1\"]\n    if abs(time.time() - int(t)) > tolerance:\n        return False\n    expected = hmac.new(secret.encode(), (t + \".\").encode() + raw_body, hashlib.sha256).hexdigest()\n    return hmac.compare_digest(expected, v1)\n```\n\n```js\nconst crypto = require(\"crypto\");\n\nfunction verify(secret, header, rawBody, tolerance = 300) {\n  const parts = Object.fromEntries(header.split(\",\").map((p) => p.split(\"=\")));\n  if (Math.abs(Date.now() / 1000 - Number(parts.t)) > tolerance) return false;\n  const expected = crypto.createHmac(\"sha256\", secret).update(`${parts.t}.`).update(rawBody).digest(\"hex\");\n  return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));\n}\n```\n\n## Delivery, retries, disabling\n\nAnswer `2xx` within 5 s. Anything else is retried up to\n6 times in total, after 1 min, 5 min, 30 min, 2 h then 12 h. After\n25 consecutive failures the endpoint is disabled\n(`active: false`, `disabled_at` set); fix the receiver and re-enable it with\n`PATCH /webhooks/{id}` `{\"active\": true}`. The last 50\ndeliveries are listed by `GET /webhooks/{id}/deliveries`; deliveries are kept\n30 days. The `url` must be `https` and must not resolve\nto a private, loopback or link-local address.\n\n# Quick start\n\nList the workspaces, create a person with an e-mail, a status and tags, then\nupdate it.\n\n```bash\nexport SAALZ_KEY=sk_live_...\ncurl https://app.saalz.com/public/api/v1/workspaces -H \"Authorization: Bearer $SAALZ_KEY\"\n\ncurl -X POST https://app.saalz.com/public/api/v1/workspaces/1/groups/2/persons \\\n  -H \"Authorization: Bearer $SAALZ_KEY\" -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: 7c9b6f2e-…\" \\\n  -d '{\"fields\": {\"first_name\": \"Ada\", \"last_name\": \"Lovelace\",\n            \"email\": \"ada@globex.com\", \"status\": \"new\", \"tags\": [\"hot\"]},\n       \"business_name\": \"Globex\"}'\n\ncurl -X PATCH https://app.saalz.com/public/api/v1/workspaces/1/groups/2/persons/123 \\\n  -H \"Authorization: Bearer $SAALZ_KEY\" -H \"Content-Type: application/json\" \\\n  -d '{\"fields\": {\"status\": \"client\"}}'\n```\n\n```python\nimport os, requests\n\napi = \"https://app.saalz.com/public/api/v1\"\nheaders = {\"Authorization\": \"Bearer \" + os.environ[\"SAALZ_KEY\"]}\n\nworkspaces = requests.get(f\"{api}/workspaces\", headers=headers).json()[\"data\"]\nws = workspaces[0][\"id\"]\ngroup = requests.get(f\"{api}/workspaces/{ws}/groups\", headers=headers).json()[\"data\"][0][\"id\"]\n\nperson = requests.post(\n    f\"{api}/workspaces/{ws}/groups/{group}/persons\",\n    headers={**headers, \"Idempotency-Key\": \"7c9b6f2e-…\"},\n    json={\"fields\": {\"first_name\": \"Ada\", \"last_name\": \"Lovelace\",\n                     \"email\": \"ada@globex.com\", \"status\": \"new\", \"tags\": [\"hot\"]},\n          \"business_name\": \"Globex\"},\n).json()\n\nrequests.patch(\n    f\"{api}/workspaces/{ws}/groups/{group}/persons/{person['id']}\",\n    headers=headers, json={\"fields\": {\"status\": \"client\"}},\n).raise_for_status()\n```\n\n```js\nconst api = \"https://app.saalz.com/public/api/v1\";\nconst headers = { Authorization: `Bearer ${process.env.SAALZ_KEY}`, \"Content-Type\": \"application/json\" };\n\nconst { data: workspaces } = await (await fetch(`${api}/workspaces`, { headers })).json();\nconst ws = workspaces[0].id;\nconst { data: groups } = await (await fetch(`${api}/workspaces/${ws}/groups`, { headers })).json();\nconst group = groups[0].id;\n\nconst person = await (await fetch(`${api}/workspaces/${ws}/groups/${group}/persons`, {\n  method: \"POST\",\n  headers: { ...headers, \"Idempotency-Key\": crypto.randomUUID() },\n  body: JSON.stringify({\n    fields: { first_name: \"Ada\", last_name: \"Lovelace\", email: \"ada@globex.com\", status: \"new\", tags: [\"hot\"] },\n    business_name: \"Globex\",\n  }),\n})).json();\n\nawait fetch(`${api}/workspaces/${ws}/groups/${group}/persons/${person.id}`, {\n  method: \"PATCH\",\n  headers,\n  body: JSON.stringify({ fields: { status: \"client\" } }),\n});\n```\n\n# Changelog\n\n- **2026-10-01 — v1.** First public version: discovery endpoints, persons,\n  businesses, opportunities, activities, webhooks.", "contact": {"name": "Saalz", "url": "https://app.saalz.com/help/en/article/api-publique-et-jeton/"}}, "servers": [{"url": "https://app.saalz.com/public/api/v1"}], "security": [{"ApiKey": []}], "tags": [{"name": "Discovery", "description": "Who you are and what you can reach: the key, the company, the users, the workspaces, the groups and their field schema, the pipelines and the activity types."}, {"name": "Persons", "description": "The people of a group. Flat objects keyed by the group's field keys (see *The field model*)."}, {"name": "Businesses", "description": "The businesses of a group. Same envelope as a person, without `business`."}, {"name": "Opportunities", "description": "The deals of a workspace, in a pipeline and a stage."}, {"name": "Activities", "description": "The tasks of a workspace: calls, meetings, to-dos, with a due date and an assignee."}, {"name": "Sourcing", "description": "People outside the CRM, found in a database of professionals, and the e-mail or the mobile of persons of the CRM. These calls use the account's monthly searches and its credits: read each description before automating them."}, {"name": "Webhooks", "description": "HTTPS endpoints that receive the events of the company, signed with a secret."}], "paths": {"/me": {"get": {"operationId": "getMe", "tags": ["Discovery"], "summary": "The key, the company, the user it acts as, the plan and the limits", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Me"}, "example": {"api_version": "2026-10-01", "key": {"id": 12, "name": "Zapier", "prefix": "sk_live_ab12", "scopes": ["read", "write"], "created_at": "2026-10-01T09:00:00Z", "expires_at": null}, "company": {"id": 1, "name": "Globex", "status": "active"}, "user": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "plan": {"code": "pro", "name": "Pro", "api_access": true}, "limits": {"rate_per_minute": 120, "requests_per_day": 10000, "max_page_size": 100, "max_body_bytes": 1048576, "max_keys": 10, "max_webhooks": 10, "webhooks_per_day": 20000, "people_searches_per_day": 200}}}}}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "Use it to check a key: which user it acts as, which scopes it has, what the plan allows and the limits in force.\n\n**Scope:** `read`."}}, "/users": {"get": {"operationId": "listUsers", "tags": ["Discovery"], "summary": "List the company's users", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"type": "object", "properties": {"data": {"type": "array", "items": {"$ref": "#/components/schemas/Member"}}}, "required": ["data"]}, "example": {"data": [{"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com", "is_active": true, "is_admin": true}]}}}}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "Every member of the company, active or not. Use the ids as `owner_id`, `assignee_id` or `sales_person_id`.\n\n**Scope:** `read`."}}, "/workspaces": {"get": {"operationId": "listWorkspaces", "tags": ["Discovery"], "summary": "List the workspaces the key can open", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"type": "object", "properties": {"data": {"type": "array", "items": {"$ref": "#/components/schemas/Workspace"}}}, "required": ["data"]}, "example": {"data": [{"id": 1, "name": "Sales", "is_default": true}]}}}}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "Only the workspaces the key's owner holds a licence on. Not paginated.\n\n**Scope:** `read`."}}, "/workspaces/{workspace_id}/groups": {"get": {"operationId": "listGroups", "tags": ["Discovery"], "summary": "List the groups of a workspace", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"type": "object", "properties": {"data": {"type": "array", "items": {"$ref": "#/components/schemas/Group"}}}, "required": ["data"]}, "example": {"data": [{"id": 2, "name": "prospects", "is_public": true, "is_default": true, "color": "#4f46e5"}]}}}}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "Only the groups the key's owner can open (public groups, and private groups the owner is a member of). A workspace the owner cannot open answers `404`.\n\n**Scope:** `read`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}]}}, "/workspaces/{workspace_id}/groups/{group_id}/fields": {"get": {"operationId": "listFields", "tags": ["Discovery"], "summary": "The field schema of a group", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"type": "object", "properties": {"data": {"type": "array", "items": {"$ref": "#/components/schemas/Field"}}}, "required": ["data"]}, "example": {"data": [{"id": 41, "key": "first_name", "name": "first name", "type": "text", "module": "person", "is_default": true, "is_required": false, "read_only": false, "options": [], "labels": []}, {"id": 44, "key": "email", "name": "email", "type": "multi", "module": "person", "is_default": true, "is_required": false, "read_only": false, "options": [], "labels": [{"id": 1, "name": "home"}, {"id": 2, "name": "work"}]}, {"id": 52, "key": "status", "name": "status", "type": "radio", "module": "person", "is_default": true, "is_required": false, "read_only": false, "options": [{"id": 7, "name": "new", "color": "#22c55e"}, {"id": 8, "name": "client", "color": "#4f46e5"}], "labels": []}]}}}}, "400": {"$ref": "#/components/responses/ValidationError"}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "The fields of the group for one module, with their `key`, `type`, `options` (radio, checkbox) and `labels` (multi). Read it before writing a person or a business.\n\n**Scope:** `read`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}, {"$ref": "#/components/parameters/GroupId"}, {"name": "module", "in": "query", "required": false, "description": "Which schema: `person` (default) or `business`.", "schema": {"type": "string", "enum": ["person", "business"], "default": "person"}}]}}, "/workspaces/{workspace_id}/pipelines": {"get": {"operationId": "listPipelines", "tags": ["Discovery"], "summary": "List the pipelines of a workspace with their stages", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"type": "object", "properties": {"data": {"type": "array", "items": {"$ref": "#/components/schemas/Pipeline"}}}, "required": ["data"]}, "example": {"data": [{"id": 1, "name": "Sales", "is_default": true, "stages": [{"id": 2, "name": "New", "order": 0, "probability": "10.00"}, {"id": 3, "name": "Proposal", "order": 1, "probability": "50.00"}]}]}}}}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "The sales channels of the workspace with their active stages (columns), in order. Use the ids as `pipeline_id` and `stage_id`.\n\n**Scope:** `read`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}]}}, "/workspaces/{workspace_id}/activity-types": {"get": {"operationId": "listActivityTypes", "tags": ["Discovery"], "summary": "List the activity types", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"type": "object", "properties": {"data": {"type": "array", "items": {"$ref": "#/components/schemas/ActivityType"}}}, "required": ["data"]}, "example": {"data": [{"id": 2, "name": "call", "is_default": true}]}}}}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "The activity types of the company (call, meeting, …). Use the ids as `type_id`.\n\n**Scope:** `read`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}]}}, "/workspaces/{workspace_id}/groups/{group_id}/persons": {"get": {"operationId": "listPersons", "tags": ["Persons"], "summary": "List the persons of a group", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}, "Link": {"$ref": "#/components/headers/Link"}}, "content": {"application/json": {"schema": {"type": "object", "properties": {"data": {"type": "array", "items": {"$ref": "#/components/schemas/Person"}}, "meta": {"$ref": "#/components/schemas/ListMeta"}}, "required": ["data", "meta"]}, "example": {"data": [{"id": 123, "uuid": "0f1a2b3c-4d5e-6f70-8192-a3b4c5d6e7f8", "created_at": "2026-10-02T14:03:00Z", "workspace_id": 1, "group_ids": [2, 5], "business": {"id": 9, "name": "Globex"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "fields": {"first_name": "Ada", "last_name": "Lovelace", "email": [{"value": "ada@globex.com", "label": "work"}], "phone": [], "job_position": "CTO", "linkedin": "https://www.linkedin.com/in/ada", "source": "api", "status": "new", "tags": ["hot"], "created": "2026-10-02T14:03:00Z", "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "my_custom": "…"}}], "meta": {"limit": 25, "has_more": false, "next_cursor": null}}}}}, "400": {"$ref": "#/components/responses/ValidationError"}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "Cursor-paginated, ordered by `id` ascending. Filters combine with AND.\n\n**Scope:** `read`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}, {"$ref": "#/components/parameters/GroupId"}, {"$ref": "#/components/parameters/Limit"}, {"$ref": "#/components/parameters/After"}, {"name": "search", "in": "query", "required": false, "description": "Case-insensitive search on first name, last name and e-mail.", "schema": {"type": "string"}, "example": "ada"}, {"name": "email", "in": "query", "required": false, "description": "Exact e-mail (case-insensitive).", "schema": {"type": "string", "format": "email"}, "example": "ada@globex.com"}, {"name": "linkedin", "in": "query", "required": false, "description": "The address of a LinkedIn profile. Matches the persons whose LinkedIn field holds the same profile, whatever the protocol, the subdomain, a final slash or tracking parameters.", "schema": {"type": "string"}, "example": "https://www.linkedin.com/in/ada"}, {"name": "owner_id", "in": "query", "required": false, "description": "Only objects owned by this user.", "schema": {"type": "integer"}}, {"name": "created_since", "in": "query", "required": false, "description": "Only objects created at or after this ISO 8601 datetime.", "schema": {"type": "string", "format": "date-time"}, "example": "2026-10-01T00:00:00Z"}, {"name": "ids", "in": "query", "required": false, "description": "Comma-separated ids, 100 at most.", "schema": {"type": "string"}, "example": "123,124"}]}, "post": {"operationId": "createPerson", "tags": ["Persons"], "summary": "Create a person", "responses": {"201": {"description": "Created", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}, "Idempotent-Replayed": {"$ref": "#/components/headers/Idempotent-Replayed"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Person"}, "example": {"id": 123, "uuid": "0f1a2b3c-4d5e-6f70-8192-a3b4c5d6e7f8", "created_at": "2026-10-02T14:03:00Z", "workspace_id": 1, "group_ids": [2, 5], "business": {"id": 9, "name": "Globex"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "fields": {"first_name": "Ada", "last_name": "Lovelace", "email": [{"value": "ada@globex.com", "label": "work"}], "phone": [], "job_position": "CTO", "linkedin": "https://www.linkedin.com/in/ada", "source": "api", "status": "new", "tags": ["hot"], "created": "2026-10-02T14:03:00Z", "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "my_custom": "…"}}}}}, "400": {"$ref": "#/components/responses/ValidationError"}, "401": {"$ref": "#/components/responses/Unauthorized"}, "402": {"$ref": "#/components/responses/PaymentRequired"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "413": {"$ref": "#/components/responses/PayloadTooLarge"}, "415": {"$ref": "#/components/responses/UnsupportedMediaType"}, "422": {"$ref": "#/components/responses/IdempotencyMismatch"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "`fields` uses the keys of the group's schema. `group_ids` defaults to the group of the path. The API stamps `source` = `api` and `created` = now. Business fields written here go to the person's business; a person with no business gets one when `business_id` or `business_name` is given. A new business takes the licence's right to create businesses (`403 forbidden` otherwise, and nothing is written). Beyond the free-plan cap: `402 limit_reached`.\n\n**Scope:** `write`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}, {"$ref": "#/components/parameters/GroupId"}, {"$ref": "#/components/parameters/IdempotencyKey"}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PersonWrite"}, "example": {"fields": {"first_name": "Ada", "last_name": "Lovelace", "email": "ada@globex.com", "status": "new", "tags": ["hot"]}, "business_name": "Globex", "owner_id": 5}}}}}}, "/workspaces/{workspace_id}/groups/{group_id}/persons/{id}": {"get": {"operationId": "getPerson", "tags": ["Persons"], "summary": "Get a person", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Person"}, "example": {"id": 123, "uuid": "0f1a2b3c-4d5e-6f70-8192-a3b4c5d6e7f8", "created_at": "2026-10-02T14:03:00Z", "workspace_id": 1, "group_ids": [2, 5], "business": {"id": 9, "name": "Globex"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "fields": {"first_name": "Ada", "last_name": "Lovelace", "email": [{"value": "ada@globex.com", "label": "work"}], "phone": [], "job_position": "CTO", "linkedin": "https://www.linkedin.com/in/ada", "source": "api", "status": "new", "tags": ["hot"], "created": "2026-10-02T14:03:00Z", "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "my_custom": "…"}}}}}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "A person of another company, or of a group the key's owner cannot open, answers `404`.\n\n**Scope:** `read`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}, {"$ref": "#/components/parameters/GroupId"}, {"$ref": "#/components/parameters/Id"}]}, "patch": {"operationId": "updatePerson", "tags": ["Persons"], "summary": "Update a person", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Person"}, "example": {"id": 123, "uuid": "0f1a2b3c-4d5e-6f70-8192-a3b4c5d6e7f8", "created_at": "2026-10-02T14:03:00Z", "workspace_id": 1, "group_ids": [2, 5], "business": {"id": 9, "name": "Globex"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "fields": {"first_name": "Ada", "last_name": "Lovelace", "email": [{"value": "ada@globex.com", "label": "work"}], "phone": [], "job_position": "CTO", "linkedin": "https://www.linkedin.com/in/ada", "source": "api", "status": "new", "tags": ["hot"], "created": "2026-10-02T14:03:00Z", "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "my_custom": "…"}}}}}, "400": {"$ref": "#/components/responses/ValidationError"}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "413": {"$ref": "#/components/responses/PayloadTooLarge"}, "415": {"$ref": "#/components/responses/UnsupportedMediaType"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "Any subset of the creation body. A `multi` or `checkbox` value replaces the whole list; `null` clears a value.\n\n**Scope:** `write`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}, {"$ref": "#/components/parameters/GroupId"}, {"$ref": "#/components/parameters/Id"}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PersonWrite"}, "example": {"fields": {"status": "client", "phone": [{"value": "+33612345678", "label": "work"}]}}}}}}, "delete": {"operationId": "deletePerson", "tags": ["Persons"], "summary": "Delete a person", "responses": {"204": {"$ref": "#/components/responses/NoContent"}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "Deletes the person and its field values. Fires `person.deleted`.\n\n**Scope:** `write`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}, {"$ref": "#/components/parameters/GroupId"}, {"$ref": "#/components/parameters/Id"}]}}, "/workspaces/{workspace_id}/groups/{group_id}/businesses": {"get": {"operationId": "listBusinesses", "tags": ["Businesses"], "summary": "List the businesses of a group", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}, "Link": {"$ref": "#/components/headers/Link"}}, "content": {"application/json": {"schema": {"type": "object", "properties": {"data": {"type": "array", "items": {"$ref": "#/components/schemas/Business"}}, "meta": {"$ref": "#/components/schemas/ListMeta"}}, "required": ["data", "meta"]}, "example": {"data": [{"id": 9, "uuid": "6c1d2e3f-4a5b-6c7d-8e9f-a0b1c2d3e4f5", "created_at": "2026-10-02T14:03:00Z", "workspace_id": 1, "group_ids": [2], "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "fields": {"name": "Globex", "email": [{"value": "contact@globex.com", "label": "work"}], "phone": [], "address": "1 rue de la Paix", "country": "France", "city": "Paris", "postal_code": "75002", "website": "https://globex.com", "is_enriched": null}}], "meta": {"limit": 25, "has_more": false, "next_cursor": null}}}}}, "400": {"$ref": "#/components/responses/ValidationError"}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "Cursor-paginated, ordered by `id` ascending.\n\n**Scope:** `read`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}, {"$ref": "#/components/parameters/GroupId"}, {"$ref": "#/components/parameters/Limit"}, {"$ref": "#/components/parameters/After"}, {"name": "search", "in": "query", "required": false, "description": "Case-insensitive search on the name and e-mail.", "schema": {"type": "string"}, "example": "globex"}, {"name": "email", "in": "query", "required": false, "description": "Exact e-mail (case-insensitive).", "schema": {"type": "string", "format": "email"}, "example": "contact@globex.com"}, {"name": "owner_id", "in": "query", "required": false, "description": "Only objects owned by this user.", "schema": {"type": "integer"}}, {"name": "created_since", "in": "query", "required": false, "description": "Only objects created at or after this ISO 8601 datetime.", "schema": {"type": "string", "format": "date-time"}, "example": "2026-10-01T00:00:00Z"}, {"name": "ids", "in": "query", "required": false, "description": "Comma-separated ids, 100 at most.", "schema": {"type": "string"}, "example": "9,10"}]}, "post": {"operationId": "createBusiness", "tags": ["Businesses"], "summary": "Create a business", "responses": {"201": {"description": "Created", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}, "Idempotent-Replayed": {"$ref": "#/components/headers/Idempotent-Replayed"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Business"}, "example": {"id": 9, "uuid": "6c1d2e3f-4a5b-6c7d-8e9f-a0b1c2d3e4f5", "created_at": "2026-10-02T14:03:00Z", "workspace_id": 1, "group_ids": [2], "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "fields": {"name": "Globex", "email": [{"value": "contact@globex.com", "label": "work"}], "phone": [], "address": "1 rue de la Paix", "country": "France", "city": "Paris", "postal_code": "75002", "website": "https://globex.com", "is_enriched": null}}}}}, "400": {"$ref": "#/components/responses/ValidationError"}, "401": {"$ref": "#/components/responses/Unauthorized"}, "402": {"$ref": "#/components/responses/PaymentRequired"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "413": {"$ref": "#/components/responses/PayloadTooLarge"}, "415": {"$ref": "#/components/responses/UnsupportedMediaType"}, "422": {"$ref": "#/components/responses/IdempotencyMismatch"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "`fields` uses the keys of the group's business schema (`name`, `email`, `phone`, `address`, `country`, `city`, `postal_code`, `website`, …). Beyond the free-plan cap: `402 limit_reached`.\n\n**Scope:** `write`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}, {"$ref": "#/components/parameters/GroupId"}, {"$ref": "#/components/parameters/IdempotencyKey"}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BusinessWrite"}, "example": {"fields": {"name": "Globex", "website": "https://globex.com", "city": "Paris"}}}}}}}, "/workspaces/{workspace_id}/groups/{group_id}/businesses/{id}": {"get": {"operationId": "getBusiness", "tags": ["Businesses"], "summary": "Get a business", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Business"}, "example": {"id": 9, "uuid": "6c1d2e3f-4a5b-6c7d-8e9f-a0b1c2d3e4f5", "created_at": "2026-10-02T14:03:00Z", "workspace_id": 1, "group_ids": [2], "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "fields": {"name": "Globex", "email": [{"value": "contact@globex.com", "label": "work"}], "phone": [], "address": "1 rue de la Paix", "country": "France", "city": "Paris", "postal_code": "75002", "website": "https://globex.com", "is_enriched": null}}}}}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "A business of another company answers `404`.\n\n**Scope:** `read`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}, {"$ref": "#/components/parameters/GroupId"}, {"$ref": "#/components/parameters/Id"}]}, "patch": {"operationId": "updateBusiness", "tags": ["Businesses"], "summary": "Update a business", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Business"}, "example": {"id": 9, "uuid": "6c1d2e3f-4a5b-6c7d-8e9f-a0b1c2d3e4f5", "created_at": "2026-10-02T14:03:00Z", "workspace_id": 1, "group_ids": [2], "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "fields": {"name": "Globex", "email": [{"value": "contact@globex.com", "label": "work"}], "phone": [], "address": "1 rue de la Paix", "country": "France", "city": "Paris", "postal_code": "75002", "website": "https://globex.com", "is_enriched": null}}}}}, "400": {"$ref": "#/components/responses/ValidationError"}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "413": {"$ref": "#/components/responses/PayloadTooLarge"}, "415": {"$ref": "#/components/responses/UnsupportedMediaType"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "Any subset of the creation body.\n\n**Scope:** `write`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}, {"$ref": "#/components/parameters/GroupId"}, {"$ref": "#/components/parameters/Id"}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/BusinessWrite"}, "example": {"fields": {"city": "Lyon"}}}}}}, "delete": {"operationId": "deleteBusiness", "tags": ["Businesses"], "summary": "Delete a business", "responses": {"204": {"$ref": "#/components/responses/NoContent"}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "Deletes the business and its field values. Fires `business.deleted`.\n\n**Scope:** `write`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}, {"$ref": "#/components/parameters/GroupId"}, {"$ref": "#/components/parameters/Id"}]}}, "/workspaces/{workspace_id}/opportunities": {"get": {"operationId": "listOpportunities", "tags": ["Opportunities"], "summary": "List the opportunities of a workspace", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}, "Link": {"$ref": "#/components/headers/Link"}}, "content": {"application/json": {"schema": {"type": "object", "properties": {"data": {"type": "array", "items": {"$ref": "#/components/schemas/Opportunity"}}, "meta": {"$ref": "#/components/schemas/ListMeta"}}, "required": ["data", "meta"]}, "example": {"data": [{"id": 7, "name": "Globex renewal", "status": "open", "amount": "1200.00", "currency": {"id": 1, "code": "EUR"}, "expected_closing": "2026-11-30", "pipeline": {"id": 1, "name": "Sales"}, "stage": {"id": 3, "name": "Proposal"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "sales_person": null, "person_id": 123, "business_id": 9, "lead_source": null, "lost_reason": null, "lost_details": "", "notes": "", "workspace_id": 1, "created_at": "2026-10-02T14:03:00Z", "updated_at": "2026-10-02T14:03:00Z"}], "meta": {"limit": 25, "has_more": false, "next_cursor": null}}}}}, "400": {"$ref": "#/components/responses/ValidationError"}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "Cursor-paginated, ordered by `id` ascending. Filters combine with AND.\n\n**Scope:** `read`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}, {"$ref": "#/components/parameters/Limit"}, {"$ref": "#/components/parameters/After"}, {"name": "status", "in": "query", "required": false, "description": "`open`, `won` or `lost`.", "schema": {"type": "string", "enum": ["open", "won", "lost"]}}, {"name": "pipeline_id", "in": "query", "required": false, "description": "Only opportunities in this pipeline.", "schema": {"type": "integer"}}, {"name": "owner_id", "in": "query", "required": false, "description": "Only objects owned by this user.", "schema": {"type": "integer"}}, {"name": "person_id", "in": "query", "required": false, "description": "Only objects linked to this person.", "schema": {"type": "integer"}}, {"name": "business_id", "in": "query", "required": false, "description": "Only objects linked to this business.", "schema": {"type": "integer"}}]}, "post": {"operationId": "createOpportunity", "tags": ["Opportunities"], "summary": "Create an opportunity", "responses": {"201": {"description": "Created", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}, "Idempotent-Replayed": {"$ref": "#/components/headers/Idempotent-Replayed"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Opportunity"}, "example": {"id": 7, "name": "Globex renewal", "status": "open", "amount": "1200.00", "currency": {"id": 1, "code": "EUR"}, "expected_closing": "2026-11-30", "pipeline": {"id": 1, "name": "Sales"}, "stage": {"id": 3, "name": "Proposal"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "sales_person": null, "person_id": 123, "business_id": 9, "lead_source": null, "lost_reason": null, "lost_details": "", "notes": "", "workspace_id": 1, "created_at": "2026-10-02T14:03:00Z", "updated_at": "2026-10-02T14:03:00Z"}}}}, "400": {"$ref": "#/components/responses/ValidationError"}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "413": {"$ref": "#/components/responses/PayloadTooLarge"}, "415": {"$ref": "#/components/responses/UnsupportedMediaType"}, "422": {"$ref": "#/components/responses/IdempotencyMismatch"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "`name` is required. `pipeline_id` and `stage_id` default to the workspace's default pipeline and its first stage; `owner_id` defaults to the key's user.\n\n**Scope:** `write`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}, {"$ref": "#/components/parameters/IdempotencyKey"}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OpportunityWrite"}, "example": {"name": "Globex renewal", "amount": "1200.00", "expected_closing": "2026-11-30", "pipeline_id": 1, "stage_id": 3, "person_id": 123, "business_id": 9}}}}}}, "/workspaces/{workspace_id}/opportunities/{id}": {"get": {"operationId": "getOpportunity", "tags": ["Opportunities"], "summary": "Get an opportunity", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Opportunity"}, "example": {"id": 7, "name": "Globex renewal", "status": "open", "amount": "1200.00", "currency": {"id": 1, "code": "EUR"}, "expected_closing": "2026-11-30", "pipeline": {"id": 1, "name": "Sales"}, "stage": {"id": 3, "name": "Proposal"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "sales_person": null, "person_id": 123, "business_id": 9, "lead_source": null, "lost_reason": null, "lost_details": "", "notes": "", "workspace_id": 1, "created_at": "2026-10-02T14:03:00Z", "updated_at": "2026-10-02T14:03:00Z"}}}}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "An opportunity of another company answers `404`.\n\n**Scope:** `read`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}, {"$ref": "#/components/parameters/Id"}]}, "patch": {"operationId": "updateOpportunity", "tags": ["Opportunities"], "summary": "Update an opportunity", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Opportunity"}, "example": {"id": 7, "name": "Globex renewal", "status": "open", "amount": "1200.00", "currency": {"id": 1, "code": "EUR"}, "expected_closing": "2026-11-30", "pipeline": {"id": 1, "name": "Sales"}, "stage": {"id": 3, "name": "Proposal"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "sales_person": null, "person_id": 123, "business_id": 9, "lead_source": null, "lost_reason": null, "lost_details": "", "notes": "", "workspace_id": 1, "created_at": "2026-10-02T14:03:00Z", "updated_at": "2026-10-02T14:03:00Z"}}}}, "400": {"$ref": "#/components/responses/ValidationError"}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "413": {"$ref": "#/components/responses/PayloadTooLarge"}, "415": {"$ref": "#/components/responses/UnsupportedMediaType"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "Any subset of the creation body. Set `status` to `won` or `lost` to close it (`lost_reason_id`, `lost_details` optional).\n\n**Scope:** `write`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}, {"$ref": "#/components/parameters/Id"}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/OpportunityWrite"}, "example": {"status": "won", "stage_id": 5}}}}}, "delete": {"operationId": "deleteOpportunity", "tags": ["Opportunities"], "summary": "Delete an opportunity", "responses": {"204": {"$ref": "#/components/responses/NoContent"}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "Fires `opportunity.deleted`.\n\n**Scope:** `write`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}, {"$ref": "#/components/parameters/Id"}]}}, "/workspaces/{workspace_id}/activities": {"get": {"operationId": "listActivities", "tags": ["Activities"], "summary": "List the activities of a workspace", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}, "Link": {"$ref": "#/components/headers/Link"}}, "content": {"application/json": {"schema": {"type": "object", "properties": {"data": {"type": "array", "items": {"$ref": "#/components/schemas/Activity"}}, "meta": {"$ref": "#/components/schemas/ListMeta"}}, "required": ["data", "meta"]}, "example": {"data": [{"id": 31, "title": "Call Ada", "note": "Confirm the renewal date.", "type": {"id": 2, "name": "call"}, "due_at": "2026-10-03T09:00:00Z", "duration_minutes": 30, "reminder_at": null, "done": false, "assignee": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "person_id": 123, "business_id": null, "opportunity_id": null, "workspace_id": 1, "created_at": "2026-10-02T14:03:00Z", "updated_at": "2026-10-02T14:03:00Z"}], "meta": {"limit": 25, "has_more": false, "next_cursor": null}}}}}, "400": {"$ref": "#/components/responses/ValidationError"}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "Cursor-paginated, ordered by `id` ascending. Filters combine with AND.\n\n**Scope:** `read`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}, {"$ref": "#/components/parameters/Limit"}, {"$ref": "#/components/parameters/After"}, {"name": "done", "in": "query", "required": false, "description": "`true` for completed activities, `false` for pending ones.", "schema": {"type": "boolean"}}, {"name": "assignee_id", "in": "query", "required": false, "description": "Only activities assigned to this user.", "schema": {"type": "integer"}}, {"name": "due_before", "in": "query", "required": false, "description": "Only activities due before this ISO 8601 datetime.", "schema": {"type": "string", "format": "date-time"}, "example": "2026-10-31T23:59:59Z"}, {"name": "due_after", "in": "query", "required": false, "description": "Only activities due at or after this ISO 8601 datetime.", "schema": {"type": "string", "format": "date-time"}, "example": "2026-10-01T00:00:00Z"}, {"name": "person_id", "in": "query", "required": false, "description": "Only objects linked to this person.", "schema": {"type": "integer"}}, {"name": "opportunity_id", "in": "query", "required": false, "description": "Only activities linked to this opportunity.", "schema": {"type": "integer"}}]}, "post": {"operationId": "createActivity", "tags": ["Activities"], "summary": "Create an activity", "responses": {"201": {"description": "Created", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}, "Idempotent-Replayed": {"$ref": "#/components/headers/Idempotent-Replayed"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Activity"}, "example": {"id": 31, "title": "Call Ada", "note": "Confirm the renewal date.", "type": {"id": 2, "name": "call"}, "due_at": "2026-10-03T09:00:00Z", "duration_minutes": 30, "reminder_at": null, "done": false, "assignee": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "person_id": 123, "business_id": null, "opportunity_id": null, "workspace_id": 1, "created_at": "2026-10-02T14:03:00Z", "updated_at": "2026-10-02T14:03:00Z"}}}}, "400": {"$ref": "#/components/responses/ValidationError"}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "413": {"$ref": "#/components/responses/PayloadTooLarge"}, "415": {"$ref": "#/components/responses/UnsupportedMediaType"}, "422": {"$ref": "#/components/responses/IdempotencyMismatch"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "`title` is required. `owner_id` defaults to the key's user. `due_at` and `reminder_at` are ISO 8601 datetimes.\n\n**Scope:** `write`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}, {"$ref": "#/components/parameters/IdempotencyKey"}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ActivityWrite"}, "example": {"title": "Call Ada", "type_id": 2, "due_at": "2026-10-03T09:00:00Z", "duration_minutes": 30, "person_id": 123}}}}}}, "/workspaces/{workspace_id}/activities/{id}": {"get": {"operationId": "getActivity", "tags": ["Activities"], "summary": "Get an activity", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Activity"}, "example": {"id": 31, "title": "Call Ada", "note": "Confirm the renewal date.", "type": {"id": 2, "name": "call"}, "due_at": "2026-10-03T09:00:00Z", "duration_minutes": 30, "reminder_at": null, "done": false, "assignee": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "person_id": 123, "business_id": null, "opportunity_id": null, "workspace_id": 1, "created_at": "2026-10-02T14:03:00Z", "updated_at": "2026-10-02T14:03:00Z"}}}}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "An activity of another company answers `404`.\n\n**Scope:** `read`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}, {"$ref": "#/components/parameters/Id"}]}, "patch": {"operationId": "updateActivity", "tags": ["Activities"], "summary": "Update an activity", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Activity"}, "example": {"id": 31, "title": "Call Ada", "note": "Confirm the renewal date.", "type": {"id": 2, "name": "call"}, "due_at": "2026-10-03T09:00:00Z", "duration_minutes": 30, "reminder_at": null, "done": false, "assignee": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "person_id": 123, "business_id": null, "opportunity_id": null, "workspace_id": 1, "created_at": "2026-10-02T14:03:00Z", "updated_at": "2026-10-02T14:03:00Z"}}}}, "400": {"$ref": "#/components/responses/ValidationError"}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "413": {"$ref": "#/components/responses/PayloadTooLarge"}, "415": {"$ref": "#/components/responses/UnsupportedMediaType"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "Any subset of the creation body. Set `done` to `true` to complete it.\n\n**Scope:** `write`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}, {"$ref": "#/components/parameters/Id"}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/ActivityWrite"}, "example": {"done": true}}}}}, "delete": {"operationId": "deleteActivity", "tags": ["Activities"], "summary": "Delete an activity", "responses": {"204": {"$ref": "#/components/responses/NoContent"}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "Fires `activity.deleted`.\n\n**Scope:** `write`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}, {"$ref": "#/components/parameters/Id"}]}}, "/workspaces/{workspace_id}/people-search": {"post": {"operationId": "searchPeople", "tags": ["Sourcing"], "summary": "Find people outside the CRM", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}, "Idempotent-Replayed": {"$ref": "#/components/headers/Idempotent-Replayed"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PeopleFound"}, "example": {"data": [{"first_name": "Ada", "last_name": "Lovelace", "title": "C++ Developer", "headline": "C++ Developer | Embedded systems", "seniority": "senior", "linkedin_url": "https://www.linkedin.com/in/ada-lovelace", "location": "Casablanca, Morocco", "city": "Casablanca", "country": "Morocco", "company": "Globex", "company_domain": "globex.com"}], "meta": {"total_matching": 67, "returned": 1}}}}}, "400": {"$ref": "#/components/responses/ValidationError"}, "401": {"$ref": "#/components/responses/Unauthorized"}, "402": {"$ref": "#/components/responses/InsufficientCredits"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "413": {"$ref": "#/components/responses/PayloadTooLarge"}, "415": {"$ref": "#/components/responses/UnsupportedMediaType"}, "422": {"$ref": "#/components/responses/IdempotencyMismatch"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "Searches a database of professionals with the filters of the body (at least one) and answers one page: 100 people at most, with their job title, company and LinkedIn address, never an e-mail or a phone. There is no next page: to read other people, change the filters. Nothing is written in the CRM.\n\nFor a precise search, send the exact job titles with `exact_titles: true` and a city; widen (a country, then `exact_titles: false`) only when too few people come back. Without `exact_titles`, titles the source finds similar are answered too. `keywords` are words about the person or their company, not a list of skills: two keywords can empty a search.\n\nSpends no credit. Each search that answers at least one person counts against the account's monthly searches (`search_quota_reached` once they are used up), and an account runs 200 searches a day at most through the API.\n\n**Scope:** `write`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}, {"$ref": "#/components/parameters/IdempotencyKey"}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/PeopleSearch"}, "example": {"job_titles": ["Développeur C++", "C++ Developer"], "exact_titles": true, "locations": ["Casablanca, Morocco"]}}}}}}, "/workspaces/{workspace_id}/reveals": {"post": {"operationId": "createReveal", "tags": ["Sourcing"], "summary": "Search the e-mail or the mobile of persons of the CRM", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}, "Idempotent-Replayed": {"$ref": "#/components/headers/Idempotent-Replayed"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/RevealStarted"}, "example": {"id": 456, "status": "started", "what": "email", "person_ids": [124], "already_have_it": [123], "already_being_searched": [], "likely_credits": 0.5, "most_credits": 3.2}}}}, "400": {"$ref": "#/components/responses/ValidationError"}, "401": {"$ref": "#/components/responses/Unauthorized"}, "402": {"$ref": "#/components/responses/InsufficientCredits"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "413": {"$ref": "#/components/responses/PayloadTooLarge"}, "415": {"$ref": "#/components/responses/UnsupportedMediaType"}, "422": {"$ref": "#/components/responses/IdempotencyMismatch"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "Starts the search of the professional e-mail, or of the mobile, of persons of the CRM (25 at most, in this workspace), and writes what is found on them. Credits are spent for the values found only: usually about `likely_credits`, and as far as it can be told in advance never above `most_credits`. A person not found costs nothing.\n\nSend `estimate_only: true` first to read both figures without starting anything. `max_credits` is required to start: when `most_credits` is above it the call is refused with `over_max_credits` and nothing is spent (`details.most_credits` says what to send). Persons who hold the value already, or whom a search of the same kind is still working on, are left out and listed. When nobody is left the answer says `status: nothing_to_do` with no `id`; otherwise `status: started` with the `id` to follow.\n\nThe search runs in the background: read `GET /workspaces/{workspace_id}/reveals/{id}` until `status` is `done`, then the person itself for the value.\n\n**Scope:** `write`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}, {"$ref": "#/components/parameters/IdempotencyKey"}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/RevealWrite"}, "example": {"what": "email", "person_ids": [123, 124], "max_credits": 10}}}}}}, "/workspaces/{workspace_id}/reveals/{id}": {"get": {"operationId": "getReveal", "tags": ["Sourcing"], "summary": "Follow a reveal", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Reveal"}, "example": {"id": 456, "status": "done", "what": "email", "person_ids": [124], "found_for_person_ids": [124], "credits_spent": 0.5}}}}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "Where a reveal stands: `started`, `done` or `failed`, the persons something was found for and the credits really spent so far. The values themselves are read on the persons (`GET …/persons/{id}`).\n\n**Scope:** `read`.", "parameters": [{"$ref": "#/components/parameters/WorkspaceId"}, {"$ref": "#/components/parameters/Id"}]}}, "/webhooks": {"get": {"operationId": "listWebhooks", "tags": ["Webhooks"], "summary": "List the webhook endpoints", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"type": "object", "properties": {"data": {"type": "array", "items": {"$ref": "#/components/schemas/Webhook"}}}, "required": ["data"]}, "example": {"data": [{"id": 3, "url": "https://example.com/hooks/saalz", "description": "", "events": ["person.created", "person.updated"], "active": true, "failure_count": 0, "disabled_at": null, "created_at": "2026-10-02T14:03:00Z"}]}}}}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "The company's endpoints. The `secret` is never shown again.\n\n**Scope:** `read`."}, "post": {"operationId": "createWebhook", "tags": ["Webhooks"], "summary": "Create a webhook endpoint", "responses": {"201": {"description": "Created", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}, "Idempotent-Replayed": {"$ref": "#/components/headers/Idempotent-Replayed"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Webhook"}, "example": {"id": 3, "url": "https://example.com/hooks/saalz", "description": "", "events": ["person.created", "person.updated"], "active": true, "failure_count": 0, "disabled_at": null, "created_at": "2026-10-02T14:03:00Z", "secret": "whsec_9f8e7d6c5b4a39281706f5e4d3c2b1a0"}}}}, "400": {"$ref": "#/components/responses/ValidationError"}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "413": {"$ref": "#/components/responses/PayloadTooLarge"}, "415": {"$ref": "#/components/responses/UnsupportedMediaType"}, "422": {"$ref": "#/components/responses/IdempotencyMismatch"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "`url` must be `https` and must not resolve to a private, loopback or link-local address. The answer is the only place the `secret` is shown. At most the plan's number of endpoints per company.\n\n**Scope:** `write`.", "parameters": [{"$ref": "#/components/parameters/IdempotencyKey"}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookWrite"}, "example": {"url": "https://example.com/hooks/saalz", "events": ["person.created", "person.updated"], "description": "CRM sync"}}}}}}, "/webhooks/{id}": {"get": {"operationId": "getWebhook", "tags": ["Webhooks"], "summary": "Get a webhook endpoint", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Webhook"}, "example": {"id": 3, "url": "https://example.com/hooks/saalz", "description": "", "events": ["person.created", "person.updated"], "active": true, "failure_count": 0, "disabled_at": null, "created_at": "2026-10-02T14:03:00Z"}}}}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "**Scope:** `read`.", "parameters": [{"$ref": "#/components/parameters/Id"}]}, "patch": {"operationId": "updateWebhook", "tags": ["Webhooks"], "summary": "Update a webhook endpoint", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Webhook"}, "example": {"id": 3, "url": "https://example.com/hooks/saalz", "description": "", "events": ["person.created", "person.updated"], "active": true, "failure_count": 0, "disabled_at": null, "created_at": "2026-10-02T14:03:00Z"}}}}, "400": {"$ref": "#/components/responses/ValidationError"}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "413": {"$ref": "#/components/responses/PayloadTooLarge"}, "415": {"$ref": "#/components/responses/UnsupportedMediaType"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "Change the `url`, the `events`, the `description`, or set `active` to `true` to re-enable an endpoint that was disabled after repeated failures (`failure_count` is reset).\n\n**Scope:** `write`.", "parameters": [{"$ref": "#/components/parameters/Id"}], "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookWrite"}, "example": {"active": true}}}}}, "delete": {"operationId": "deleteWebhook", "tags": ["Webhooks"], "summary": "Delete a webhook endpoint", "responses": {"204": {"$ref": "#/components/responses/NoContent"}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "Deletes the endpoint and its stored deliveries.\n\n**Scope:** `write`.", "parameters": [{"$ref": "#/components/parameters/Id"}]}}, "/webhooks/{id}/test": {"post": {"operationId": "testWebhook", "tags": ["Webhooks"], "summary": "Send a ping event to an endpoint", "responses": {"202": {"description": "Accepted", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookDelivery"}, "example": {"id": 501, "event_id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "event": "ping", "status": "pending", "attempts": 0, "response_status": null, "last_error": "", "next_attempt_at": null, "created_at": "2026-10-02T14:03:05Z", "delivered_at": null}}}}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "422": {"$ref": "#/components/responses/IdempotencyMismatch"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "Sends a `ping` event to the endpoint right away and records the delivery. Use it to check the receiver and the signature.\n\n**Scope:** `write`.", "parameters": [{"$ref": "#/components/parameters/Id"}, {"$ref": "#/components/parameters/IdempotencyKey"}]}}, "/webhooks/{id}/deliveries": {"get": {"operationId": "listWebhookDeliveries", "tags": ["Webhooks"], "summary": "The last deliveries of an endpoint", "responses": {"200": {"description": "OK", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"type": "object", "properties": {"data": {"type": "array", "items": {"$ref": "#/components/schemas/WebhookDelivery"}}}, "required": ["data"]}, "example": {"data": [{"id": 501, "event_id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "event": "person.updated", "status": "delivered", "attempts": 1, "response_status": 200, "last_error": "", "next_attempt_at": null, "created_at": "2026-10-02T14:03:05Z", "delivered_at": "2026-10-02T14:03:06Z"}]}}}}, "401": {"$ref": "#/components/responses/Unauthorized"}, "403": {"$ref": "#/components/responses/Forbidden"}, "404": {"$ref": "#/components/responses/NotFound"}, "429": {"$ref": "#/components/responses/RateLimited"}, "503": {"$ref": "#/components/responses/ServiceUnavailable"}}, "description": "The most recent deliveries of the endpoint, newest first, with the status, the attempts and the receiver's answer.\n\n**Scope:** `read`.", "parameters": [{"$ref": "#/components/parameters/Id"}]}}}, "components": {"securitySchemes": {"ApiKey": {"type": "http", "scheme": "bearer", "bearerFormat": "sk_live_<32 chars>", "description": "An API key created in Settings › Public API, sent as `Authorization: Bearer sk_live_…`. Scopes `read` and `write`."}}, "schemas": {"Error": {"type": "object", "description": "The one error envelope.", "properties": {"error": {"allOf": [{"$ref": "#/components/schemas/ErrorBody"}], "description": "The error."}}, "required": ["error"], "example": {"error": {"code": "validation_error", "message": "The request is not valid.", "request_id": "5f1c9b2e8d4a4f0c9e3b7a6d5c4b3a21", "details": {"fields.email": ["Expected a string."]}}}}, "ErrorBody": {"type": "object", "description": "The error itself.", "properties": {"code": {"type": "string", "description": "A stable code (see *Errors*).", "enum": ["account_suspended", "api_disabled", "conflict", "forbidden", "idempotency_mismatch", "insufficient_credits", "insufficient_scope", "internal_error", "invalid_api_key", "ip_not_allowed", "key_expired", "key_owner_inactive", "key_revoked", "limit_reached", "method_not_allowed", "no_licence", "not_found", "over_max_credits", "payload_too_large", "plan_required", "rate_limited", "search_quota_reached", "search_unavailable", "unauthorized", "unsupported_media_type"], "example": "validation_error"}, "message": {"type": "string", "description": "For humans; may change.", "example": "The request is not valid."}, "details": {"type": "object", "description": "The offending keys, when known.", "nullable": true, "example": {"fields.email": ["Expected a string."]}, "additionalProperties": true}, "request_id": {"type": "string", "description": "Quote it to support.", "example": "5f1c9b2e8d4a4f0c9e3b7a6d5c4b3a21"}}, "required": ["code", "message", "request_id"]}, "ListMeta": {"type": "object", "description": "Pagination of a list of records.", "properties": {"limit": {"type": "integer", "description": "The page size used.", "example": 25}, "has_more": {"type": "boolean", "description": "`true` when another page follows.", "example": true}, "next_cursor": {"type": "string", "description": "Pass it as `after` to get the next page; `null` on the last page.", "nullable": true, "example": "aWQ6MTIz"}}, "required": ["limit", "has_more", "next_cursor"]}, "User": {"type": "object", "description": "A user, as shown inside other objects.", "properties": {"id": {"type": "integer", "description": "The id.", "example": 5}, "first_name": {"type": "string", "description": "First name.", "example": "Joris"}, "last_name": {"type": "string", "description": "Last name.", "example": "Dupont"}, "email": {"type": "string", "description": "The e-mail.", "format": "email", "example": "joris@example.com"}}, "required": ["id", "first_name", "last_name", "email"], "example": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}}, "Member": {"type": "object", "description": "A member of the company (`GET /users`).", "properties": {"id": {"type": "integer", "description": "The id.", "example": 5}, "first_name": {"type": "string", "description": "First name.", "example": "Joris"}, "last_name": {"type": "string", "description": "Last name.", "example": "Dupont"}, "email": {"type": "string", "description": "The e-mail.", "format": "email", "example": "joris@example.com"}, "is_active": {"type": "boolean", "description": "`false` for a deactivated user.", "example": true}, "is_admin": {"type": "boolean", "description": "`true` for a company administrator.", "example": true}}, "required": ["id", "first_name", "last_name", "email", "is_active", "is_admin"], "example": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com", "is_active": true, "is_admin": true}}, "Workspace": {"type": "object", "description": "A workspace.", "properties": {"id": {"type": "integer", "description": "The id.", "example": 1}, "name": {"type": "string", "description": "The name.", "example": "Sales"}, "is_default": {"type": "boolean", "description": "The company's first workspace.", "example": true}}, "required": ["id", "name", "is_default"], "example": {"id": 1, "name": "Sales", "is_default": true}}, "Group": {"type": "object", "description": "A group of a workspace.", "properties": {"id": {"type": "integer", "description": "The id.", "example": 2}, "name": {"type": "string", "description": "The name.", "example": "prospects"}, "is_public": {"type": "boolean", "description": "`true` when every licensed user of the workspace can open it.", "example": true}, "is_default": {"type": "boolean", "description": "The workspace's default group.", "example": true}, "color": {"type": "string", "description": "The colour shown in the app.", "nullable": true, "example": "#4f46e5"}}, "required": ["id", "name", "is_public", "is_default", "color"], "example": {"id": 2, "name": "prospects", "is_public": true, "is_default": true, "color": "#4f46e5"}}, "FieldOption": {"type": "object", "description": "An option of a `radio` or `checkbox` field.", "properties": {"id": {"type": "integer", "description": "The id.", "example": 7}, "name": {"type": "string", "description": "The name.", "example": "new"}, "color": {"type": "string", "description": "The colour shown in the app.", "nullable": true, "example": "#22c55e"}}, "required": ["id", "name"]}, "FieldLabel": {"type": "object", "description": "A label of a `multi` field (the product's annotations).", "properties": {"id": {"type": "integer", "description": "The id.", "example": 2}, "name": {"type": "string", "description": "The name.", "example": "work"}}, "required": ["id", "name"]}, "Field": {"type": "object", "description": "One field of a group's schema.", "properties": {"id": {"type": "integer", "description": "The id.", "example": 41}, "key": {"type": "string", "description": "The key to use in `fields`. The field name slugified.", "example": "first_name"}, "name": {"type": "string", "description": "The field name as shown in the app.", "example": "first name"}, "type": {"type": "string", "description": "The type, which decides the value shape (see *The field model*).", "enum": ["text", "textarea", "number", "url", "date", "datetime", "radio", "checkbox", "multi", "extra_user", "extra_person", "extra_business"], "example": "text"}, "module": {"type": "string", "description": "`person` or `business`.", "enum": ["person", "business"], "example": "person"}, "is_default": {"type": "boolean", "description": "`true` for a field the product creates for every group.", "example": true}, "is_required": {"type": "boolean", "description": "`true` when the app requires a value.", "example": false}, "read_only": {"type": "boolean", "description": "`true` when the API refuses writes (set by the product).", "example": false}, "options": {"type": "array", "description": "For `radio` and `checkbox`.", "items": {"$ref": "#/components/schemas/FieldOption"}}, "labels": {"type": "array", "description": "For `multi`.", "items": {"$ref": "#/components/schemas/FieldLabel"}}}, "required": ["id", "key", "name", "type", "module", "is_default", "is_required", "read_only", "options", "labels"], "example": {"id": 52, "key": "status", "name": "status", "type": "radio", "module": "person", "is_default": true, "is_required": false, "read_only": false, "options": [{"id": 7, "name": "new", "color": "#22c55e"}, {"id": 8, "name": "client", "color": "#4f46e5"}], "labels": []}}, "MultiValue": {"type": "object", "description": "One value of a `multi` field, with its label.", "properties": {"value": {"type": "string", "description": "The value.", "example": "ada@globex.com"}, "label": {"type": "string", "description": "The label (`home`, `work`, …), or `null`.", "nullable": true, "example": "work"}}, "required": ["value", "label"]}, "BusinessRef": {"type": "object", "description": "A business, as shown inside a person.", "properties": {"id": {"type": "integer", "description": "The id.", "example": 9}, "name": {"type": "string", "description": "The name.", "example": "Globex"}}, "required": ["id", "name"]}, "NamedRef": {"type": "object", "description": "An object shown by its id and name.", "properties": {"id": {"type": "integer", "description": "The id.", "example": 1}, "name": {"type": "string", "description": "The name.", "example": "Sales"}}, "required": ["id", "name"]}, "LostReason": {"type": "object", "description": "A lost reason.", "properties": {"id": {"type": "integer", "description": "The id.", "example": 4}, "label": {"type": "string", "description": "The label.", "example": "Price"}}, "required": ["id", "label"]}, "Currency": {"type": "object", "description": "A currency.", "properties": {"id": {"type": "integer", "description": "The id.", "example": 1}, "code": {"type": "string", "description": "The code.", "example": "EUR"}}, "required": ["id", "code"]}, "Person": {"type": "object", "description": "A person.", "properties": {"id": {"type": "integer", "description": "The id.", "example": 123}, "uuid": {"type": "string", "description": "A stable UUID.", "format": "uuid", "example": "0f1a2b3c-4d5e-6f70-8192-a3b4c5d6e7f8"}, "created_at": {"type": "string", "description": "Creation datetime, UTC.", "format": "date-time", "nullable": true, "example": "2026-10-02T14:03:00Z"}, "workspace_id": {"type": "integer", "description": "The workspace the object belongs to.", "example": 1}, "group_ids": {"type": "array", "description": "The groups the person is in.", "items": {"type": "integer"}, "example": [2, 5]}, "business": {"allOf": [{"$ref": "#/components/schemas/BusinessRef"}], "description": "The person's business, or `null`.", "nullable": true}, "owner": {"allOf": [{"$ref": "#/components/schemas/User"}], "description": "The owner (a user), or `null`.", "nullable": true}, "fields": {"type": "object", "description": "The values, keyed by the group's field keys. Each value's shape depends on the field type.", "example": {"first_name": "Ada", "last_name": "Lovelace", "email": [{"value": "ada@globex.com", "label": "work"}], "phone": [], "job_position": "CTO", "linkedin": "https://www.linkedin.com/in/ada", "source": "api", "status": "new", "tags": ["hot"], "created": "2026-10-02T14:03:00Z", "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "my_custom": "…"}, "additionalProperties": true}}, "required": ["id", "uuid", "created_at", "workspace_id", "group_ids", "business", "owner", "fields"], "example": {"id": 123, "uuid": "0f1a2b3c-4d5e-6f70-8192-a3b4c5d6e7f8", "created_at": "2026-10-02T14:03:00Z", "workspace_id": 1, "group_ids": [2, 5], "business": {"id": 9, "name": "Globex"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "fields": {"first_name": "Ada", "last_name": "Lovelace", "email": [{"value": "ada@globex.com", "label": "work"}], "phone": [], "job_position": "CTO", "linkedin": "https://www.linkedin.com/in/ada", "source": "api", "status": "new", "tags": ["hot"], "created": "2026-10-02T14:03:00Z", "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "my_custom": "…"}}}, "PersonWrite": {"type": "object", "description": "The body of a person creation or update.", "properties": {"fields": {"type": "object", "description": "Values to write, keyed by field key. Unknown key: `400 unknown_field`.", "example": {"first_name": "Ada", "last_name": "Lovelace", "email": "ada@globex.com", "status": "new", "tags": ["hot"]}, "additionalProperties": true}, "business_id": {"type": "integer", "description": "Attach the person to an existing business.", "nullable": true, "example": 9}, "business_name": {"type": "string", "description": "Attach the person to a business by name (created when it does not exist).", "example": "Globex"}, "owner_id": {"type": "integer", "description": "The owner. Defaults to the key's user on creation.", "nullable": true, "example": 5}, "group_ids": {"type": "array", "description": "The groups to put the person in. Defaults to the group of the path.", "items": {"type": "integer"}, "example": [2]}}, "example": {"fields": {"first_name": "Ada", "last_name": "Lovelace", "email": "ada@globex.com", "status": "new", "tags": ["hot"]}, "business_name": "Globex", "owner_id": 5}}, "Business": {"type": "object", "description": "A business.", "properties": {"id": {"type": "integer", "description": "The id.", "example": 9}, "uuid": {"type": "string", "description": "A stable UUID.", "format": "uuid", "example": "6c1d2e3f-4a5b-6c7d-8e9f-a0b1c2d3e4f5"}, "created_at": {"type": "string", "description": "Creation datetime, UTC.", "format": "date-time", "nullable": true, "example": "2026-10-02T14:03:00Z"}, "workspace_id": {"type": "integer", "description": "The workspace the object belongs to.", "example": 1}, "group_ids": {"type": "array", "description": "The groups the business is in.", "items": {"type": "integer"}, "example": [2]}, "owner": {"allOf": [{"$ref": "#/components/schemas/User"}], "description": "The owner (a user), or `null`.", "nullable": true}, "fields": {"type": "object", "description": "The values, keyed by the group's business field keys.", "example": {"name": "Globex", "email": [{"value": "contact@globex.com", "label": "work"}], "phone": [], "address": "1 rue de la Paix", "country": "France", "city": "Paris", "postal_code": "75002", "website": "https://globex.com", "is_enriched": null}, "additionalProperties": true}}, "required": ["id", "uuid", "created_at", "workspace_id", "group_ids", "owner", "fields"], "example": {"id": 9, "uuid": "6c1d2e3f-4a5b-6c7d-8e9f-a0b1c2d3e4f5", "created_at": "2026-10-02T14:03:00Z", "workspace_id": 1, "group_ids": [2], "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "fields": {"name": "Globex", "email": [{"value": "contact@globex.com", "label": "work"}], "phone": [], "address": "1 rue de la Paix", "country": "France", "city": "Paris", "postal_code": "75002", "website": "https://globex.com", "is_enriched": null}}}, "BusinessWrite": {"type": "object", "description": "The body of a business creation or update.", "properties": {"fields": {"type": "object", "description": "Values to write, keyed by field key.", "example": {"name": "Globex", "website": "https://globex.com", "city": "Paris"}, "additionalProperties": true}, "owner_id": {"type": "integer", "description": "The owner. Defaults to the key's user on creation.", "nullable": true, "example": 5}, "group_ids": {"type": "array", "description": "The groups to put the business in. Defaults to the group of the path.", "items": {"type": "integer"}, "example": [2]}}, "example": {"fields": {"name": "Globex", "website": "https://globex.com", "city": "Paris"}}}, "Opportunity": {"type": "object", "description": "An opportunity.", "properties": {"id": {"type": "integer", "description": "The id.", "example": 7}, "name": {"type": "string", "description": "The name.", "example": "Globex renewal"}, "status": {"type": "string", "description": "`open`, `won` or `lost`.", "enum": ["open", "won", "lost"], "example": "open"}, "amount": {"type": "string", "description": "A decimal as a string, or `null`.", "nullable": true, "example": "1200.00"}, "currency": {"allOf": [{"$ref": "#/components/schemas/Currency"}], "description": "The currency, or `null`.", "nullable": true}, "expected_closing": {"type": "string", "description": "Expected closing date, or `null`.", "format": "date", "nullable": true, "example": "2026-11-30"}, "pipeline": {"allOf": [{"$ref": "#/components/schemas/NamedRef"}], "description": "The pipeline (sales channel)."}, "stage": {"allOf": [{"$ref": "#/components/schemas/NamedRef"}], "description": "The stage (column)."}, "owner": {"allOf": [{"$ref": "#/components/schemas/User"}], "description": "The owner (a user), or `null`.", "nullable": true}, "sales_person": {"allOf": [{"$ref": "#/components/schemas/User"}], "description": "The sales person, or `null`.", "nullable": true}, "person_id": {"type": "integer", "description": "The linked person, or `null`.", "nullable": true, "example": 123}, "business_id": {"type": "integer", "description": "The linked business, or `null`.", "nullable": true, "example": 9}, "lead_source": {"allOf": [{"$ref": "#/components/schemas/NamedRef"}], "description": "The lead source, or `null`.", "nullable": true}, "lost_reason": {"allOf": [{"$ref": "#/components/schemas/LostReason"}], "description": "The lost reason, or `null`.", "nullable": true}, "lost_details": {"type": "string", "description": "Free text about the loss.", "example": ""}, "notes": {"type": "string", "description": "Free text.", "example": ""}, "workspace_id": {"type": "integer", "description": "The workspace the object belongs to.", "example": 1}, "created_at": {"type": "string", "description": "Creation datetime, UTC.", "format": "date-time", "example": "2026-10-02T14:03:00Z"}, "updated_at": {"type": "string", "description": "Last update datetime, UTC.", "format": "date-time", "example": "2026-10-02T14:03:00Z"}}, "required": ["id", "name", "status", "amount", "currency", "expected_closing", "pipeline", "stage", "owner", "sales_person", "person_id", "business_id", "lead_source", "lost_reason", "lost_details", "notes", "workspace_id", "created_at", "updated_at"], "example": {"id": 7, "name": "Globex renewal", "status": "open", "amount": "1200.00", "currency": {"id": 1, "code": "EUR"}, "expected_closing": "2026-11-30", "pipeline": {"id": 1, "name": "Sales"}, "stage": {"id": 3, "name": "Proposal"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "sales_person": null, "person_id": 123, "business_id": 9, "lead_source": null, "lost_reason": null, "lost_details": "", "notes": "", "workspace_id": 1, "created_at": "2026-10-02T14:03:00Z", "updated_at": "2026-10-02T14:03:00Z"}}, "OpportunityWrite": {"type": "object", "description": "The body of an opportunity creation or update.", "properties": {"name": {"type": "string", "description": "Required on creation.", "example": "Globex renewal"}, "amount": {"type": "string", "description": "A decimal, as a string or a number.", "nullable": true, "example": "1200.00"}, "currency_id": {"type": "integer", "description": "A currency id.", "nullable": true, "example": 1}, "expected_closing": {"type": "string", "description": "`YYYY-MM-DD`.", "format": "date", "nullable": true, "example": "2026-11-30"}, "pipeline_id": {"type": "integer", "description": "A pipeline of the workspace (`GET /workspaces/{workspace_id}/pipelines`).", "example": 1}, "stage_id": {"type": "integer", "description": "A stage of that pipeline.", "example": 3}, "owner_id": {"type": "integer", "description": "The owner's user id.", "example": 5}, "sales_person_id": {"type": "integer", "description": "A user id.", "nullable": true, "example": 5}, "person_id": {"type": "integer", "description": "The linked person, or `null`.", "nullable": true, "example": 123}, "business_id": {"type": "integer", "description": "The linked business, or `null`.", "nullable": true, "example": 9}, "lead_source_id": {"type": "integer", "description": "A lead source id.", "nullable": true, "example": 2}, "status": {"type": "string", "description": "`open`, `won` or `lost`.", "enum": ["open", "won", "lost"], "example": "open"}, "lost_reason_id": {"type": "integer", "description": "A lost reason id (when `lost`).", "nullable": true, "example": 4}, "lost_details": {"type": "string", "description": "Free text about the loss.", "example": ""}, "notes": {"type": "string", "description": "Free text.", "example": ""}}, "example": {"name": "Globex renewal", "amount": "1200.00", "expected_closing": "2026-11-30", "pipeline_id": 1, "stage_id": 3, "person_id": 123, "business_id": 9}}, "Activity": {"type": "object", "description": "An activity (task).", "properties": {"id": {"type": "integer", "description": "The id.", "example": 31}, "title": {"type": "string", "description": "The title.", "example": "Call Ada"}, "note": {"type": "string", "description": "Free text.", "example": ""}, "type": {"allOf": [{"$ref": "#/components/schemas/NamedRef"}], "description": "The activity type.", "nullable": true}, "due_at": {"type": "string", "description": "Due datetime, or `null`.", "format": "date-time", "nullable": true, "example": "2026-10-03T09:00:00Z"}, "duration_minutes": {"type": "integer", "description": "Duration in minutes.", "nullable": true, "example": 30}, "reminder_at": {"type": "string", "description": "Reminder datetime, or `null`.", "format": "date-time", "nullable": true}, "done": {"type": "boolean", "description": "`true` when completed.", "example": false}, "assignee": {"allOf": [{"$ref": "#/components/schemas/User"}], "description": "The assignee (a user), or `null`.", "nullable": true}, "owner": {"allOf": [{"$ref": "#/components/schemas/User"}], "description": "The owner (a user), or `null`.", "nullable": true}, "person_id": {"type": "integer", "description": "The linked person, or `null`.", "nullable": true, "example": 123}, "business_id": {"type": "integer", "description": "The linked business, or `null`.", "nullable": true}, "opportunity_id": {"type": "integer", "description": "The linked opportunity, or `null`.", "nullable": true}, "workspace_id": {"type": "integer", "description": "The workspace the object belongs to.", "example": 1}, "created_at": {"type": "string", "description": "Creation datetime, UTC.", "format": "date-time", "example": "2026-10-02T14:03:00Z"}, "updated_at": {"type": "string", "description": "Last update datetime, UTC.", "format": "date-time", "example": "2026-10-02T14:03:00Z"}}, "required": ["id", "title", "note", "type", "due_at", "duration_minutes", "reminder_at", "done", "assignee", "owner", "person_id", "business_id", "opportunity_id", "workspace_id", "created_at", "updated_at"], "example": {"id": 31, "title": "Call Ada", "note": "Confirm the renewal date.", "type": {"id": 2, "name": "call"}, "due_at": "2026-10-03T09:00:00Z", "duration_minutes": 30, "reminder_at": null, "done": false, "assignee": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "person_id": 123, "business_id": null, "opportunity_id": null, "workspace_id": 1, "created_at": "2026-10-02T14:03:00Z", "updated_at": "2026-10-02T14:03:00Z"}}, "ActivityWrite": {"type": "object", "description": "The body of an activity creation or update.", "properties": {"title": {"type": "string", "description": "Required on creation.", "example": "Call Ada"}, "note": {"type": "string", "description": "Free text.", "example": ""}, "type_id": {"type": "integer", "description": "An activity type id (`GET /workspaces/{workspace_id}/activity-types`).", "nullable": true, "example": 2}, "due_at": {"type": "string", "description": "ISO 8601 datetime.", "format": "date-time", "nullable": true, "example": "2026-10-03T09:00:00Z"}, "duration_minutes": {"type": "integer", "description": "Duration in minutes.", "nullable": true, "example": 30}, "reminder_at": {"type": "string", "description": "ISO 8601 datetime.", "format": "date-time", "nullable": true}, "done": {"type": "boolean", "description": "`true` when completed.", "example": false}, "assignee_id": {"type": "integer", "description": "A user id.", "nullable": true, "example": 5}, "owner_id": {"type": "integer", "description": "The owner's user id.", "example": 5}, "person_id": {"type": "integer", "description": "The linked person, or `null`.", "nullable": true, "example": 123}, "business_id": {"type": "integer", "description": "The linked business, or `null`.", "nullable": true}, "opportunity_id": {"type": "integer", "description": "The linked opportunity, or `null`.", "nullable": true}}, "example": {"title": "Call Ada", "type_id": 2, "due_at": "2026-10-03T09:00:00Z", "duration_minutes": 30, "person_id": 123}}, "Stage": {"type": "object", "description": "A stage (column) of a pipeline.", "properties": {"id": {"type": "integer", "description": "The id.", "example": 3}, "name": {"type": "string", "description": "The name.", "example": "Proposal"}, "order": {"type": "integer", "description": "Position in the pipeline.", "example": 1}, "probability": {"type": "string", "description": "Win probability as a decimal string.", "example": "50.00"}}, "required": ["id", "name", "order", "probability"]}, "Pipeline": {"type": "object", "description": "A sales channel and its stages.", "properties": {"id": {"type": "integer", "description": "The id.", "example": 1}, "name": {"type": "string", "description": "The name.", "example": "Sales"}, "is_default": {"type": "boolean", "description": "The workspace's default pipeline.", "example": true}, "stages": {"type": "array", "description": "The active stages, in order.", "items": {"$ref": "#/components/schemas/Stage"}}}, "required": ["id", "name", "is_default", "stages"], "example": {"id": 1, "name": "Sales", "is_default": true, "stages": [{"id": 2, "name": "New", "order": 0, "probability": "10.00"}, {"id": 3, "name": "Proposal", "order": 1, "probability": "50.00"}]}}, "ActivityType": {"type": "object", "description": "An activity type.", "properties": {"id": {"type": "integer", "description": "The id.", "example": 2}, "name": {"type": "string", "description": "The name.", "example": "call"}, "is_default": {"type": "boolean", "description": "`true` for a type the product creates.", "example": true}}, "required": ["id", "name", "is_default"], "example": {"id": 2, "name": "call", "is_default": true}}, "Webhook": {"type": "object", "description": "A webhook endpoint.", "properties": {"id": {"type": "integer", "description": "The id.", "example": 3}, "url": {"type": "string", "description": "The receiver, `https` only.", "format": "uri", "example": "https://example.com/hooks/saalz"}, "description": {"type": "string", "description": "Free text.", "example": ""}, "events": {"type": "array", "description": "The subscribed events. `*` subscribes to all.", "items": {"type": "string", "enum": ["person.created", "person.updated", "person.deleted", "business.created", "business.updated", "business.deleted", "opportunity.created", "opportunity.updated", "opportunity.deleted", "activity.created", "activity.updated", "activity.deleted", "ping", "*"]}, "example": ["person.created", "person.updated"]}, "active": {"type": "boolean", "description": "`false` when disabled (by you, or after repeated failures).", "example": true}, "failure_count": {"type": "integer", "description": "Consecutive failed deliveries.", "example": 0}, "disabled_at": {"type": "string", "description": "When the endpoint was disabled after repeated failures, or `null`.", "format": "date-time", "nullable": true}, "created_at": {"type": "string", "description": "Creation datetime, UTC.", "format": "date-time", "example": "2026-10-02T14:03:00Z"}, "secret": {"type": "string", "description": "The signing secret. **Only in the creation answer.**", "example": "whsec_9f8e7d6c5b4a39281706f5e4d3c2b1a0"}}, "required": ["id", "url", "description", "events", "active", "failure_count", "disabled_at", "created_at"], "example": {"id": 3, "url": "https://example.com/hooks/saalz", "description": "", "events": ["person.created", "person.updated"], "active": true, "failure_count": 0, "disabled_at": null, "created_at": "2026-10-02T14:03:00Z"}}, "WebhookWrite": {"type": "object", "description": "The body of a webhook creation or update.", "properties": {"url": {"type": "string", "description": "`https` only; private, loopback and link-local addresses are refused.", "format": "uri", "example": "https://example.com/hooks/saalz"}, "events": {"type": "array", "description": "The events to receive (see *Webhooks*). `*` for all.", "items": {"type": "string", "enum": ["person.created", "person.updated", "person.deleted", "business.created", "business.updated", "business.deleted", "opportunity.created", "opportunity.updated", "opportunity.deleted", "activity.created", "activity.updated", "activity.deleted", "ping", "*"]}, "example": ["person.created", "person.updated"]}, "description": {"type": "string", "description": "Free text.", "example": "CRM sync"}, "active": {"type": "boolean", "description": "Set `true` to re-enable a disabled endpoint.", "example": true}}, "example": {"url": "https://example.com/hooks/saalz", "events": ["person.created", "person.updated"], "description": "CRM sync"}}, "WebhookDelivery": {"type": "object", "description": "One delivery attempt record of a webhook endpoint.", "properties": {"id": {"type": "integer", "description": "The id.", "example": 501}, "event_id": {"type": "string", "description": "The event id (`evt_…`).", "example": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2"}, "event": {"type": "string", "description": "The event type.", "enum": ["person.created", "person.updated", "person.deleted", "business.created", "business.updated", "business.deleted", "opportunity.created", "opportunity.updated", "opportunity.deleted", "activity.created", "activity.updated", "activity.deleted", "ping"], "example": "person.updated"}, "status": {"type": "string", "description": "`pending`, `delivered` or `failed`.", "enum": ["pending", "delivered", "failed"], "example": "delivered"}, "attempts": {"type": "integer", "description": "Attempts made so far.", "example": 1}, "response_status": {"type": "integer", "description": "The receiver's HTTP status on the last attempt, or `null`.", "nullable": true, "example": 200}, "last_error": {"type": "string", "description": "The last transport error, if any.", "example": ""}, "next_attempt_at": {"type": "string", "description": "When the next retry is due, or `null`.", "format": "date-time", "nullable": true}, "created_at": {"type": "string", "description": "Creation datetime, UTC.", "format": "date-time", "example": "2026-10-02T14:03:05Z"}, "delivered_at": {"type": "string", "description": "When the receiver answered 2xx, or `null`.", "format": "date-time", "nullable": true, "example": "2026-10-02T14:03:06Z"}}, "required": ["id", "event_id", "event", "status", "attempts", "response_status", "created_at"], "example": {"id": 501, "event_id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "event": "person.updated", "status": "delivered", "attempts": 1, "response_status": 200, "last_error": "", "next_attempt_at": null, "created_at": "2026-10-02T14:03:05Z", "delivered_at": "2026-10-02T14:03:06Z"}}, "WebhookEvent": {"type": "object", "description": "The body posted to a webhook endpoint.", "properties": {"id": {"type": "string", "description": "The event id. Deliveries of the same event share it.", "example": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2"}, "type": {"type": "string", "description": "The event type.", "enum": ["person.created", "person.updated", "person.deleted", "business.created", "business.updated", "business.deleted", "opportunity.created", "opportunity.updated", "opportunity.deleted", "activity.created", "activity.updated", "activity.deleted", "ping"], "example": "person.updated"}, "created_at": {"type": "string", "description": "Creation datetime, UTC.", "format": "date-time", "example": "2026-10-02T14:03:05Z"}, "api_version": {"type": "string", "description": "The API version the payload follows.", "example": "2026-10-01"}, "company_id": {"type": "integer", "description": "Your company.", "example": 1}, "workspace_id": {"type": "integer", "description": "The workspace of the object, or `null` for `ping`.", "nullable": true, "example": 1}, "data": {"type": "object", "description": "The object in its API shape; `{\"id\": …}` only for `*.deleted`; `{}` for `ping`.", "example": {"id": 123, "uuid": "0f1a2b3c-4d5e-6f70-8192-a3b4c5d6e7f8", "created_at": "2026-10-02T14:03:00Z", "workspace_id": 1, "group_ids": [2, 5], "business": {"id": 9, "name": "Globex"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "fields": {"first_name": "Ada", "last_name": "Lovelace", "email": [{"value": "ada@globex.com", "label": "work"}], "phone": [], "job_position": "CTO", "linkedin": "https://www.linkedin.com/in/ada", "source": "api", "status": "new", "tags": ["hot"], "created": "2026-10-02T14:03:00Z", "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "my_custom": "…"}}, "additionalProperties": true}}, "required": ["id", "type", "created_at", "api_version", "company_id", "workspace_id", "data"], "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "person.updated", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": 1, "data": {"id": 123, "uuid": "0f1a2b3c-4d5e-6f70-8192-a3b4c5d6e7f8", "created_at": "2026-10-02T14:03:00Z", "workspace_id": 1, "group_ids": [2, 5], "business": {"id": 9, "name": "Globex"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "fields": {"first_name": "Ada", "last_name": "Lovelace", "email": [{"value": "ada@globex.com", "label": "work"}], "phone": [], "job_position": "CTO", "linkedin": "https://www.linkedin.com/in/ada", "source": "api", "status": "new", "tags": ["hot"], "created": "2026-10-02T14:03:00Z", "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "my_custom": "…"}}}}, "ApiKeyInfo": {"type": "object", "description": "The key in use.", "properties": {"id": {"type": "integer", "description": "The id.", "example": 12}, "name": {"type": "string", "description": "The name.", "example": "Zapier"}, "prefix": {"type": "string", "description": "The first 12 characters, for display.", "example": "sk_live_ab12"}, "scopes": {"type": "array", "description": "`read` and/or `write`.", "items": {"type": "string", "enum": ["read", "write"]}, "example": ["read", "write"]}, "created_at": {"type": "string", "description": "Creation datetime, UTC.", "format": "date-time", "example": "2026-10-01T09:00:00Z"}, "expires_at": {"type": "string", "description": "Expiry datetime, or `null`.", "format": "date-time", "nullable": true}}, "required": ["id", "name", "prefix", "scopes", "created_at", "expires_at"]}, "CompanyInfo": {"type": "object", "description": "The company the key belongs to.", "properties": {"id": {"type": "integer", "description": "The id.", "example": 1}, "name": {"type": "string", "description": "The name.", "example": "Globex"}, "status": {"type": "string", "description": "The account status.", "example": "active"}}, "required": ["id", "name", "status"]}, "PlanInfo": {"type": "object", "description": "The company's plan.", "properties": {"code": {"type": "string", "description": "The plan code.", "example": "pro"}, "name": {"type": "string", "description": "The name.", "example": "Pro"}, "api_access": {"type": "boolean", "description": "Whether the plan includes API access.", "example": true}}, "required": ["code", "name", "api_access"]}, "Limits": {"type": "object", "description": "The limits in force.", "properties": {"rate_per_minute": {"type": "integer", "description": "Requests per key per minute.", "example": 120}, "requests_per_day": {"type": "integer", "description": "Requests per company per day.", "example": 10000}, "max_page_size": {"type": "integer", "description": "Largest `limit`.", "example": 100}, "max_body_bytes": {"type": "integer", "description": "Largest request body, bytes.", "example": 1048576}, "max_keys": {"type": "integer", "description": "Active keys per company.", "example": 10}, "max_webhooks": {"type": "integer", "description": "Webhook endpoints per company.", "example": 10}, "webhooks_per_day": {"type": "integer", "description": "Webhook deliveries per company per day.", "example": 20000}, "people_searches_per_day": {"type": "integer", "description": "People searches per company per day.", "example": 200}}, "required": ["rate_per_minute", "requests_per_day", "max_page_size", "max_body_bytes", "max_keys", "max_webhooks", "webhooks_per_day", "people_searches_per_day"], "example": {"rate_per_minute": 120, "requests_per_day": 10000, "max_page_size": 100, "max_body_bytes": 1048576, "max_keys": 10, "max_webhooks": 10, "webhooks_per_day": 20000, "people_searches_per_day": 200}}, "Me": {"type": "object", "description": "The answer of `GET /me`.", "properties": {"api_version": {"type": "string", "description": "The current API version.", "example": "2026-10-01"}, "key": {"allOf": [{"$ref": "#/components/schemas/ApiKeyInfo"}], "description": "The key in use."}, "company": {"allOf": [{"$ref": "#/components/schemas/CompanyInfo"}], "description": "The company."}, "user": {"allOf": [{"$ref": "#/components/schemas/User"}], "description": "The user the key acts as."}, "plan": {"allOf": [{"$ref": "#/components/schemas/PlanInfo"}], "description": "The plan, or `null` when unknown.", "nullable": true}, "limits": {"allOf": [{"$ref": "#/components/schemas/Limits"}], "description": "The limits in force."}}, "required": ["api_version", "key", "company", "user", "plan", "limits"], "example": {"api_version": "2026-10-01", "key": {"id": 12, "name": "Zapier", "prefix": "sk_live_ab12", "scopes": ["read", "write"], "created_at": "2026-10-01T09:00:00Z", "expires_at": null}, "company": {"id": 1, "name": "Globex", "status": "active"}, "user": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "plan": {"code": "pro", "name": "Pro", "api_access": true}, "limits": {"rate_per_minute": 120, "requests_per_day": 10000, "max_page_size": 100, "max_body_bytes": 1048576, "max_keys": 10, "max_webhooks": 10, "webhooks_per_day": 20000, "people_searches_per_day": 200}}}, "PeopleSearch": {"type": "object", "description": "The filters of a people search. At least one is required; an unknown key is refused.", "properties": {"job_titles": {"type": "array", "description": "Job titles, for example `CFO`. Give the variants people really write, in each language of the market.", "items": {"type": "string", "maxLength": 200}, "example": ["Développeur C++", "C++ Developer"], "maxItems": 20}, "exact_titles": {"type": "boolean", "description": "`true`: only people whose job title is one of `job_titles`. `false` (default): titles the source finds similar too. Needs `job_titles`.", "example": true, "default": false}, "locations": {"type": "array", "description": "Where the person is: cities (`Lyon, France`) or countries.", "items": {"type": "string", "maxLength": 200}, "example": ["Casablanca, Morocco"], "maxItems": 20}, "seniorities": {"type": "array", "description": "`owner`, `founder`, `c_suite`, `partner`, `vp`, `head`, `director`, `manager`, `senior`, `entry`. A rank in the company, not years of experience.", "items": {"type": "string", "maxLength": 200}, "example": ["senior"], "maxItems": 20}, "company_name": {"type": "string", "description": "One company the person works at.", "example": "Globex", "maxLength": 200}, "company_sizes": {"type": "array", "description": "Employee ranges of their company, for example `11-50` or `51-200`.", "items": {"type": "string", "maxLength": 200}, "example": ["51-200"], "maxItems": 20}, "industries": {"type": "array", "description": "The industry of their company.", "items": {"type": "string", "maxLength": 200}, "example": ["Software"], "maxItems": 20}, "keywords": {"type": "array", "description": "Words about the person or their company. Every word must match: not a list of skills.", "items": {"type": "string", "maxLength": 200}, "example": ["fintech"], "maxItems": 20}, "name": {"type": "string", "description": "The person's name.", "example": "Ada Lovelace", "maxLength": 200}}, "additionalProperties": false, "example": {"job_titles": ["Développeur C++", "C++ Developer"], "exact_titles": true, "locations": ["Casablanca, Morocco"]}}, "FoundPerson": {"type": "object", "description": "A person found outside the CRM. Never an e-mail or a phone.", "properties": {"first_name": {"type": "string", "description": "First name.", "nullable": true, "example": "Ada"}, "last_name": {"type": "string", "description": "Last name.", "nullable": true, "example": "Lovelace"}, "title": {"type": "string", "description": "Current job title.", "nullable": true, "example": "C++ Developer"}, "headline": {"type": "string", "description": "The line of presentation of their profile.", "nullable": true, "example": "C++ Developer | Embedded systems"}, "seniority": {"type": "string", "description": "Their rank in the company, as the source reads it.", "nullable": true, "example": "senior"}, "linkedin_url": {"type": "string", "description": "The address of their LinkedIn profile.", "nullable": true, "example": "https://www.linkedin.com/in/ada-lovelace"}, "location": {"type": "string", "description": "Where they are, as one text.", "nullable": true, "example": "Casablanca, Morocco"}, "city": {"type": "string", "description": "City.", "nullable": true, "example": "Casablanca"}, "country": {"type": "string", "description": "Country.", "nullable": true, "example": "Morocco"}, "company": {"type": "string", "description": "The company they work at.", "nullable": true, "example": "Globex"}, "company_domain": {"type": "string", "description": "That company's website domain.", "nullable": true, "example": "globex.com"}}, "required": ["first_name", "last_name", "title", "headline", "seniority", "linkedin_url", "location", "city", "country", "company", "company_domain"], "example": {"first_name": "Ada", "last_name": "Lovelace", "title": "C++ Developer", "headline": "C++ Developer | Embedded systems", "seniority": "senior", "linkedin_url": "https://www.linkedin.com/in/ada-lovelace", "location": "Casablanca, Morocco", "city": "Casablanca", "country": "Morocco", "company": "Globex", "company_domain": "globex.com"}}, "PeopleFoundMeta": {"type": "object", "description": "How many people match, and how many this answer holds.", "properties": {"total_matching": {"type": "integer", "description": "People matching the filters in the database. Only the first 100 are answered.", "example": 67}, "returned": {"type": "integer", "description": "People in `data`.", "example": 1}}, "required": ["total_matching", "returned"]}, "PeopleFound": {"type": "object", "description": "The answer of a people search: one page, 100 people at most.", "properties": {"data": {"type": "array", "description": "The people found.", "items": {"$ref": "#/components/schemas/FoundPerson"}}, "meta": {"allOf": [{"$ref": "#/components/schemas/PeopleFoundMeta"}], "description": "The counts."}}, "required": ["data", "meta"], "example": {"data": [{"first_name": "Ada", "last_name": "Lovelace", "title": "C++ Developer", "headline": "C++ Developer | Embedded systems", "seniority": "senior", "linkedin_url": "https://www.linkedin.com/in/ada-lovelace", "location": "Casablanca, Morocco", "city": "Casablanca", "country": "Morocco", "company": "Globex", "company_domain": "globex.com"}], "meta": {"total_matching": 67, "returned": 1}}}, "RevealWrite": {"type": "object", "description": "What to search, for whom, and the most it may cost.", "properties": {"what": {"type": "string", "description": "`email` (the professional e-mail) or `mobile`.", "enum": ["email", "mobile"], "example": "email"}, "person_ids": {"type": "array", "description": "Persons of this workspace the key's user can open, 25 at most.", "items": {"type": "integer"}, "example": [123, 124], "minItems": 1, "maxItems": 25}, "max_credits": {"type": "number", "description": "The most credits this call may engage. Above it, nothing starts and nothing is spent. Required unless `estimate_only` is `true`.", "example": 10, "minimum": 0}, "estimate_only": {"type": "boolean", "description": "`true`: starts nothing and spends nothing, and answers `status: estimate` with `likely_credits` and `most_credits` for the persons that would be searched.", "example": false, "default": false}}, "required": ["what", "person_ids"], "additionalProperties": false, "example": {"what": "email", "person_ids": [123, 124], "max_credits": 10}}, "RevealStarted": {"type": "object", "description": "What was started, and who was left out.", "properties": {"id": {"type": "integer", "description": "The reveal to follow, or `null` when nothing was started.", "nullable": true, "example": 456}, "status": {"type": "string", "description": "`started`, `nothing_to_do` when every person has the value already or is being searched, or `estimate` for a call with `estimate_only`.", "enum": ["started", "nothing_to_do", "estimate"], "example": "started"}, "what": {"type": "string", "description": "What is searched.", "enum": ["email", "mobile"], "example": "email"}, "person_ids": {"type": "array", "description": "The persons this reveal searches.", "items": {"type": "integer"}, "example": [124]}, "already_have_it": {"type": "array", "description": "Persons left out: they hold the value already.", "items": {"type": "integer"}, "example": [123]}, "already_being_searched": {"type": "array", "description": "Persons left out: a search of the same kind is still running for them.", "items": {"type": "integer"}, "example": []}, "likely_credits": {"type": "number", "description": "What it costs when the first source finds every person, the usual case.", "example": 0.5}, "most_credits": {"type": "number", "description": "The ceiling, as far as it can be told in advance. Rarely reached.", "example": 3.2}}, "required": ["id", "status", "what", "person_ids", "already_have_it", "already_being_searched", "likely_credits", "most_credits"], "example": {"id": 456, "status": "started", "what": "email", "person_ids": [124], "already_have_it": [123], "already_being_searched": [], "likely_credits": 0.5, "most_credits": 3.2}}, "Reveal": {"type": "object", "description": "Where a reveal stands.", "properties": {"id": {"type": "integer", "description": "The reveal.", "example": 456}, "status": {"type": "string", "description": "`started` while it runs, then `done` or `failed`.", "enum": ["started", "done", "failed"], "example": "done"}, "what": {"type": "string", "description": "What is searched.", "enum": ["email", "mobile", "email_and_mobile"], "example": "email"}, "person_ids": {"type": "array", "description": "The persons searched.", "items": {"type": "integer"}, "example": [124]}, "found_for_person_ids": {"type": "array", "description": "The persons something was found for. The value is on the person.", "items": {"type": "integer"}, "example": [124]}, "credits_spent": {"type": "number", "description": "The credits really spent so far.", "example": 0.5}}, "required": ["id", "status", "what", "person_ids", "found_for_person_ids", "credits_spent"], "example": {"id": 456, "status": "done", "what": "email", "person_ids": [124], "found_for_person_ids": [124], "credits_spent": 0.5}}}, "responses": {"ValidationError": {"description": "The request is not valid (`validation_error`, `invalid_json`, `invalid_cursor`, `unknown_field`).", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}, "example": {"error": {"code": "validation_error", "message": "The request is not valid.", "request_id": "5f1c9b2e8d4a4f0c9e3b7a6d5c4b3a21", "details": {"fields.email": ["Expected a string."]}}}}}}, "Unauthorized": {"description": "No key, or a key that is invalid, revoked, expired, or whose owner is inactive.", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}, "example": {"error": {"code": "invalid_api_key", "message": "This API key is not valid.", "request_id": "5f1c9b2e8d4a4f0c9e3b7a6d5c4b3a21"}}}}}, "PaymentRequired": {"description": "A plan limit is reached (`limit_reached`); `details` carries `limit`, `current`, `upgrade_url`.", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}, "example": {"error": {"code": "limit_reached", "message": "A plan limit has been reached.", "request_id": "5f1c9b2e8d4a4f0c9e3b7a6d5c4b3a21", "details": {"limit": 500, "current": 500, "upgrade_url": "https://app.saalz.com/settings/billing"}}}}}}, "InsufficientCredits": {"description": "Not enough credits on the account (`insufficient_credits`). Nothing was spent.", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}, "example": {"error": {"code": "insufficient_credits", "message": "Not enough credits on the account. Nothing was spent.", "request_id": "5f1c9b2e8d4a4f0c9e3b7a6d5c4b3a21"}}}}}, "Forbidden": {"description": "The key may not do this: scope, IP, licence, plan, or suspended account.", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}, "example": {"error": {"code": "insufficient_scope", "message": "This key does not have the scope this call requires.", "request_id": "5f1c9b2e8d4a4f0c9e3b7a6d5c4b3a21"}}}}}, "NotFound": {"description": "No such object, or an object of another company.", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}, "example": {"error": {"code": "not_found", "message": "Not found.", "request_id": "5f1c9b2e8d4a4f0c9e3b7a6d5c4b3a21"}}}}}, "Conflict": {"description": "The write conflicts with the current state.", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}, "example": {"error": {"code": "conflict", "message": "Conflict.", "request_id": "5f1c9b2e8d4a4f0c9e3b7a6d5c4b3a21"}}}}}, "PayloadTooLarge": {"description": "The body exceeds 1 MiB.", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}, "example": {"error": {"code": "payload_too_large", "message": "The request body is too large (1 MiB at most).", "request_id": "5f1c9b2e8d4a4f0c9e3b7a6d5c4b3a21"}}}}}, "UnsupportedMediaType": {"description": "The body is not `application/json`.", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}, "example": {"error": {"code": "unsupported_media_type", "message": "Send JSON (Content-Type: application/json).", "request_id": "5f1c9b2e8d4a4f0c9e3b7a6d5c4b3a21"}}}}}, "IdempotencyMismatch": {"description": "The `Idempotency-Key` was already used with a different body.", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}, "example": {"error": {"code": "idempotency_mismatch", "message": "This Idempotency-Key was already used with a different body.", "request_id": "5f1c9b2e8d4a4f0c9e3b7a6d5c4b3a21"}}}}}, "RateLimited": {"description": "Too many requests; wait `Retry-After` seconds.", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}, "Retry-After": {"$ref": "#/components/headers/Retry-After"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}, "example": {"error": {"code": "rate_limited", "message": "Too many requests.", "request_id": "5f1c9b2e8d4a4f0c9e3b7a6d5c4b3a21"}}}}}, "ServiceUnavailable": {"description": "The API is temporarily disabled.", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}, "Retry-After": {"$ref": "#/components/headers/Retry-After"}}, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/Error"}, "example": {"error": {"code": "api_disabled", "message": "The API is temporarily unavailable.", "request_id": "5f1c9b2e8d4a4f0c9e3b7a6d5c4b3a21"}}}}}, "NoContent": {"description": "Deleted.", "headers": {"X-Request-Id": {"$ref": "#/components/headers/X-Request-Id"}, "Saalz-API-Version": {"$ref": "#/components/headers/Saalz-API-Version"}, "X-RateLimit-Limit": {"$ref": "#/components/headers/X-RateLimit-Limit"}, "X-RateLimit-Remaining": {"$ref": "#/components/headers/X-RateLimit-Remaining"}, "X-RateLimit-Reset": {"$ref": "#/components/headers/X-RateLimit-Reset"}, "X-RateLimit-Scope": {"$ref": "#/components/headers/X-RateLimit-Scope"}}}}, "parameters": {"WorkspaceId": {"name": "workspace_id", "in": "path", "required": true, "description": "The workspace id (`GET /workspaces`).", "schema": {"type": "integer"}, "example": 1}, "GroupId": {"name": "group_id", "in": "path", "required": true, "description": "The group id (`GET /workspaces/{workspace_id}/groups`).", "schema": {"type": "integer"}, "example": 2}, "Id": {"name": "id", "in": "path", "required": true, "description": "The object's id.", "schema": {"type": "integer"}, "example": 123}, "Limit": {"name": "limit", "in": "query", "required": false, "description": "Page size, 1–100 (default 25).", "schema": {"type": "integer", "minimum": 1, "maximum": 100, "default": 25}}, "After": {"name": "after", "in": "query", "required": false, "description": "The `next_cursor` of the previous page. Opaque.", "schema": {"type": "string"}, "example": "aWQ6MTIz"}, "IdempotencyKey": {"name": "Idempotency-Key", "in": "header", "required": false, "description": "Up to 128 characters, e.g. a UUID. The first answer is replayed for 24 h to the same API key on the same address; a different body answers `422 idempotency_mismatch`.", "schema": {"type": "string", "maxLength": 128}, "example": "7c9b6f2e-1a2b-4c3d-8e9f-0a1b2c3d4e5f"}}, "headers": {"X-Request-Id": {"description": "The request id. Quote it to support.", "schema": {"type": "string"}}, "Saalz-API-Version": {"description": "The API version in force.", "schema": {"type": "string", "example": "2026-10-01"}}, "X-RateLimit-Limit": {"description": "The limit of the scope closest to exhaustion.", "schema": {"type": "integer"}}, "X-RateLimit-Remaining": {"description": "Requests left in that scope.", "schema": {"type": "integer"}}, "X-RateLimit-Reset": {"description": "When that scope resets, unix seconds.", "schema": {"type": "integer"}}, "X-RateLimit-Scope": {"description": "`minute` or `day`.", "schema": {"type": "string", "enum": ["minute", "day"]}}, "Retry-After": {"description": "Seconds to wait before retrying.", "schema": {"type": "integer"}}, "Link": {"description": "`<url>; rel=\"next\"` when another page follows.", "schema": {"type": "string"}}, "Idempotent-Replayed": {"description": "`true` when the answer was replayed from a previous call with the same `Idempotency-Key`.", "schema": {"type": "string", "enum": ["true"]}}}}, "x-webhooks": {"person.created": {"post": {"operationId": "event_person_created", "tags": ["Webhooks"], "summary": "person.created", "description": "A person was created.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "person.created", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": 1, "data": {"id": 123, "uuid": "0f1a2b3c-4d5e-6f70-8192-a3b4c5d6e7f8", "created_at": "2026-10-02T14:03:00Z", "workspace_id": 1, "group_ids": [2, 5], "business": {"id": 9, "name": "Globex"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "fields": {"first_name": "Ada", "last_name": "Lovelace", "email": [{"value": "ada@globex.com", "label": "work"}], "phone": [], "job_position": "CTO", "linkedin": "https://www.linkedin.com/in/ada", "source": "api", "status": "new", "tags": ["hot"], "created": "2026-10-02T14:03:00Z", "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "my_custom": "…"}}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}, "person.updated": {"post": {"operationId": "event_person_updated", "tags": ["Webhooks"], "summary": "person.updated", "description": "A person was changed (coalesced per 5 s).", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "person.updated", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": 1, "data": {"id": 123, "uuid": "0f1a2b3c-4d5e-6f70-8192-a3b4c5d6e7f8", "created_at": "2026-10-02T14:03:00Z", "workspace_id": 1, "group_ids": [2, 5], "business": {"id": 9, "name": "Globex"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "fields": {"first_name": "Ada", "last_name": "Lovelace", "email": [{"value": "ada@globex.com", "label": "work"}], "phone": [], "job_position": "CTO", "linkedin": "https://www.linkedin.com/in/ada", "source": "api", "status": "new", "tags": ["hot"], "created": "2026-10-02T14:03:00Z", "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "my_custom": "…"}}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}, "person.deleted": {"post": {"operationId": "event_person_deleted", "tags": ["Webhooks"], "summary": "person.deleted", "description": "A person was deleted. `data` is `{\"id\": …}`.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "person.deleted", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": 1, "data": {"id": 123}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}, "business.created": {"post": {"operationId": "event_business_created", "tags": ["Webhooks"], "summary": "business.created", "description": "A business was created.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "business.created", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": 1, "data": {"id": 9, "uuid": "6c1d2e3f-4a5b-6c7d-8e9f-a0b1c2d3e4f5", "created_at": "2026-10-02T14:03:00Z", "workspace_id": 1, "group_ids": [2], "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "fields": {"name": "Globex", "email": [{"value": "contact@globex.com", "label": "work"}], "phone": [], "address": "1 rue de la Paix", "country": "France", "city": "Paris", "postal_code": "75002", "website": "https://globex.com", "is_enriched": null}}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}, "business.updated": {"post": {"operationId": "event_business_updated", "tags": ["Webhooks"], "summary": "business.updated", "description": "A business was changed (coalesced per 5 s).", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "business.updated", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": 1, "data": {"id": 9, "uuid": "6c1d2e3f-4a5b-6c7d-8e9f-a0b1c2d3e4f5", "created_at": "2026-10-02T14:03:00Z", "workspace_id": 1, "group_ids": [2], "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "fields": {"name": "Globex", "email": [{"value": "contact@globex.com", "label": "work"}], "phone": [], "address": "1 rue de la Paix", "country": "France", "city": "Paris", "postal_code": "75002", "website": "https://globex.com", "is_enriched": null}}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}, "business.deleted": {"post": {"operationId": "event_business_deleted", "tags": ["Webhooks"], "summary": "business.deleted", "description": "A business was deleted. `data` is `{\"id\": …}`.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "business.deleted", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": 1, "data": {"id": 9}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}, "opportunity.created": {"post": {"operationId": "event_opportunity_created", "tags": ["Webhooks"], "summary": "opportunity.created", "description": "An opportunity was created.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "opportunity.created", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": 1, "data": {"id": 7, "name": "Globex renewal", "status": "open", "amount": "1200.00", "currency": {"id": 1, "code": "EUR"}, "expected_closing": "2026-11-30", "pipeline": {"id": 1, "name": "Sales"}, "stage": {"id": 3, "name": "Proposal"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "sales_person": null, "person_id": 123, "business_id": 9, "lead_source": null, "lost_reason": null, "lost_details": "", "notes": "", "workspace_id": 1, "created_at": "2026-10-02T14:03:00Z", "updated_at": "2026-10-02T14:03:00Z"}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}, "opportunity.updated": {"post": {"operationId": "event_opportunity_updated", "tags": ["Webhooks"], "summary": "opportunity.updated", "description": "An opportunity was changed.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "opportunity.updated", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": 1, "data": {"id": 7, "name": "Globex renewal", "status": "open", "amount": "1200.00", "currency": {"id": 1, "code": "EUR"}, "expected_closing": "2026-11-30", "pipeline": {"id": 1, "name": "Sales"}, "stage": {"id": 3, "name": "Proposal"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "sales_person": null, "person_id": 123, "business_id": 9, "lead_source": null, "lost_reason": null, "lost_details": "", "notes": "", "workspace_id": 1, "created_at": "2026-10-02T14:03:00Z", "updated_at": "2026-10-02T14:03:00Z"}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}, "opportunity.deleted": {"post": {"operationId": "event_opportunity_deleted", "tags": ["Webhooks"], "summary": "opportunity.deleted", "description": "An opportunity was deleted. `data` is `{\"id\": …}`.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "opportunity.deleted", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": 1, "data": {"id": 7}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}, "activity.created": {"post": {"operationId": "event_activity_created", "tags": ["Webhooks"], "summary": "activity.created", "description": "An activity was created.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "activity.created", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": 1, "data": {"id": 31, "title": "Call Ada", "note": "Confirm the renewal date.", "type": {"id": 2, "name": "call"}, "due_at": "2026-10-03T09:00:00Z", "duration_minutes": 30, "reminder_at": null, "done": false, "assignee": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "person_id": 123, "business_id": null, "opportunity_id": null, "workspace_id": 1, "created_at": "2026-10-02T14:03:00Z", "updated_at": "2026-10-02T14:03:00Z"}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}, "activity.updated": {"post": {"operationId": "event_activity_updated", "tags": ["Webhooks"], "summary": "activity.updated", "description": "An activity was changed.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "activity.updated", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": 1, "data": {"id": 31, "title": "Call Ada", "note": "Confirm the renewal date.", "type": {"id": 2, "name": "call"}, "due_at": "2026-10-03T09:00:00Z", "duration_minutes": 30, "reminder_at": null, "done": false, "assignee": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "person_id": 123, "business_id": null, "opportunity_id": null, "workspace_id": 1, "created_at": "2026-10-02T14:03:00Z", "updated_at": "2026-10-02T14:03:00Z"}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}, "activity.deleted": {"post": {"operationId": "event_activity_deleted", "tags": ["Webhooks"], "summary": "activity.deleted", "description": "An activity was deleted. `data` is `{\"id\": …}`.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "activity.deleted", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": 1, "data": {"id": 31}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}, "ping": {"post": {"operationId": "event_ping", "tags": ["Webhooks"], "summary": "ping", "description": "Sent by `POST /webhooks/{id}/test`. `data` is `{}`.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "ping", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": null, "data": {}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}}, "webhooks": {"person.created": {"post": {"operationId": "event_person_created", "tags": ["Webhooks"], "summary": "person.created", "description": "A person was created.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "person.created", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": 1, "data": {"id": 123, "uuid": "0f1a2b3c-4d5e-6f70-8192-a3b4c5d6e7f8", "created_at": "2026-10-02T14:03:00Z", "workspace_id": 1, "group_ids": [2, 5], "business": {"id": 9, "name": "Globex"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "fields": {"first_name": "Ada", "last_name": "Lovelace", "email": [{"value": "ada@globex.com", "label": "work"}], "phone": [], "job_position": "CTO", "linkedin": "https://www.linkedin.com/in/ada", "source": "api", "status": "new", "tags": ["hot"], "created": "2026-10-02T14:03:00Z", "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "my_custom": "…"}}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}, "person.updated": {"post": {"operationId": "event_person_updated", "tags": ["Webhooks"], "summary": "person.updated", "description": "A person was changed (coalesced per 5 s).", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "person.updated", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": 1, "data": {"id": 123, "uuid": "0f1a2b3c-4d5e-6f70-8192-a3b4c5d6e7f8", "created_at": "2026-10-02T14:03:00Z", "workspace_id": 1, "group_ids": [2, 5], "business": {"id": 9, "name": "Globex"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "fields": {"first_name": "Ada", "last_name": "Lovelace", "email": [{"value": "ada@globex.com", "label": "work"}], "phone": [], "job_position": "CTO", "linkedin": "https://www.linkedin.com/in/ada", "source": "api", "status": "new", "tags": ["hot"], "created": "2026-10-02T14:03:00Z", "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "my_custom": "…"}}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}, "person.deleted": {"post": {"operationId": "event_person_deleted", "tags": ["Webhooks"], "summary": "person.deleted", "description": "A person was deleted. `data` is `{\"id\": …}`.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "person.deleted", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": 1, "data": {"id": 123}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}, "business.created": {"post": {"operationId": "event_business_created", "tags": ["Webhooks"], "summary": "business.created", "description": "A business was created.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "business.created", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": 1, "data": {"id": 9, "uuid": "6c1d2e3f-4a5b-6c7d-8e9f-a0b1c2d3e4f5", "created_at": "2026-10-02T14:03:00Z", "workspace_id": 1, "group_ids": [2], "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "fields": {"name": "Globex", "email": [{"value": "contact@globex.com", "label": "work"}], "phone": [], "address": "1 rue de la Paix", "country": "France", "city": "Paris", "postal_code": "75002", "website": "https://globex.com", "is_enriched": null}}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}, "business.updated": {"post": {"operationId": "event_business_updated", "tags": ["Webhooks"], "summary": "business.updated", "description": "A business was changed (coalesced per 5 s).", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "business.updated", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": 1, "data": {"id": 9, "uuid": "6c1d2e3f-4a5b-6c7d-8e9f-a0b1c2d3e4f5", "created_at": "2026-10-02T14:03:00Z", "workspace_id": 1, "group_ids": [2], "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "fields": {"name": "Globex", "email": [{"value": "contact@globex.com", "label": "work"}], "phone": [], "address": "1 rue de la Paix", "country": "France", "city": "Paris", "postal_code": "75002", "website": "https://globex.com", "is_enriched": null}}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}, "business.deleted": {"post": {"operationId": "event_business_deleted", "tags": ["Webhooks"], "summary": "business.deleted", "description": "A business was deleted. `data` is `{\"id\": …}`.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "business.deleted", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": 1, "data": {"id": 9}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}, "opportunity.created": {"post": {"operationId": "event_opportunity_created", "tags": ["Webhooks"], "summary": "opportunity.created", "description": "An opportunity was created.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "opportunity.created", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": 1, "data": {"id": 7, "name": "Globex renewal", "status": "open", "amount": "1200.00", "currency": {"id": 1, "code": "EUR"}, "expected_closing": "2026-11-30", "pipeline": {"id": 1, "name": "Sales"}, "stage": {"id": 3, "name": "Proposal"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "sales_person": null, "person_id": 123, "business_id": 9, "lead_source": null, "lost_reason": null, "lost_details": "", "notes": "", "workspace_id": 1, "created_at": "2026-10-02T14:03:00Z", "updated_at": "2026-10-02T14:03:00Z"}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}, "opportunity.updated": {"post": {"operationId": "event_opportunity_updated", "tags": ["Webhooks"], "summary": "opportunity.updated", "description": "An opportunity was changed.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "opportunity.updated", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": 1, "data": {"id": 7, "name": "Globex renewal", "status": "open", "amount": "1200.00", "currency": {"id": 1, "code": "EUR"}, "expected_closing": "2026-11-30", "pipeline": {"id": 1, "name": "Sales"}, "stage": {"id": 3, "name": "Proposal"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "sales_person": null, "person_id": 123, "business_id": 9, "lead_source": null, "lost_reason": null, "lost_details": "", "notes": "", "workspace_id": 1, "created_at": "2026-10-02T14:03:00Z", "updated_at": "2026-10-02T14:03:00Z"}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}, "opportunity.deleted": {"post": {"operationId": "event_opportunity_deleted", "tags": ["Webhooks"], "summary": "opportunity.deleted", "description": "An opportunity was deleted. `data` is `{\"id\": …}`.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "opportunity.deleted", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": 1, "data": {"id": 7}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}, "activity.created": {"post": {"operationId": "event_activity_created", "tags": ["Webhooks"], "summary": "activity.created", "description": "An activity was created.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "activity.created", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": 1, "data": {"id": 31, "title": "Call Ada", "note": "Confirm the renewal date.", "type": {"id": 2, "name": "call"}, "due_at": "2026-10-03T09:00:00Z", "duration_minutes": 30, "reminder_at": null, "done": false, "assignee": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "person_id": 123, "business_id": null, "opportunity_id": null, "workspace_id": 1, "created_at": "2026-10-02T14:03:00Z", "updated_at": "2026-10-02T14:03:00Z"}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}, "activity.updated": {"post": {"operationId": "event_activity_updated", "tags": ["Webhooks"], "summary": "activity.updated", "description": "An activity was changed.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "activity.updated", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": 1, "data": {"id": 31, "title": "Call Ada", "note": "Confirm the renewal date.", "type": {"id": 2, "name": "call"}, "due_at": "2026-10-03T09:00:00Z", "duration_minutes": 30, "reminder_at": null, "done": false, "assignee": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "owner": {"id": 5, "first_name": "Joris", "last_name": "Dupont", "email": "joris@example.com"}, "person_id": 123, "business_id": null, "opportunity_id": null, "workspace_id": 1, "created_at": "2026-10-02T14:03:00Z", "updated_at": "2026-10-02T14:03:00Z"}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}, "activity.deleted": {"post": {"operationId": "event_activity_deleted", "tags": ["Webhooks"], "summary": "activity.deleted", "description": "An activity was deleted. `data` is `{\"id\": …}`.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "activity.deleted", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": 1, "data": {"id": 31}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}, "ping": {"post": {"operationId": "event_ping", "tags": ["Webhooks"], "summary": "ping", "description": "Sent by `POST /webhooks/{id}/test`. `data` is `{}`.", "requestBody": {"required": true, "content": {"application/json": {"schema": {"$ref": "#/components/schemas/WebhookEvent"}, "example": {"id": "evt_01j9k2m3n4p5q6r7s8t9u0v1w2", "type": "ping", "created_at": "2026-10-02T14:03:05Z", "api_version": "2026-10-01", "company_id": 1, "workspace_id": null, "data": {}}}}}, "responses": {"2XX": {"description": "Received. Anything else is retried."}}, "security": []}}}}