{"openapi":"3.1.0","info":{"title":"SpeakApp API","version":"1.1","description":"Read an organization's calls, recordings, extensions, queues and users, and take its webhooks (call.missed, call.ended, recording.ready, bot.handoff, bot.ended). Scopes: calls.read, recordings.read, extensions.read, queues.read, users.read. Reference: https://app.b-smart.org.il/developers/api?lang=en"},"externalDocs":{"url":"https://app.b-smart.org.il/developers/api?lang=en"},"servers":[{"url":"https://app.b-smart.org.il"}],"components":{"securitySchemes":{"key":{"type":"http","scheme":"bearer","description":"spk_… made by the organization's administrator in SpeakApp (\"API וחיבורים\")."}}},"security":[{"key":[]}],"paths":{"/api/v1/me":{"get":{"operationId":"me","summary":"The key and its organization","description":"Which key this is, whose organization, its scopes, and the limits. Any key may read it: use it to check the connection.","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"organization":{"id":"8c1d2b3a-4e5f-4a6b-9c7d-0e1f2a3b4c5d","name":"חברת הדוגמה בע״מ"},"key":{"id":"0c6f2a51-7d0e-4c3a-9f1b-2a7e5d9c4b01","name":"CRM המכירות","scopes":["calls.read","recordings.read"]},"limits":{"requests_per_minute":120,"organization_requests_per_minute":600,"calls_per_minute":20,"recording_links_per_hour":300,"max_days":31,"page_size_max":200},"version":"1.1"}}}},"400":{"description":"invalid_request: A wrong parameter, a range over 31 days, or a key sent in the URL instead of the header","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"401":{"description":"invalid_token: The key is missing, wrong, revoked, or unused for 180 days","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"403":{"description":"scope_missing: The key lacks the scope this request needs address_not_allowed: The request came from an IP address outside the key's list organization_inactive: The organization is not active terms_not_accepted: The organization's administrator has not accepted the terms of use yet","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"404":{"description":"not_found: Not found, or not the organization's no_recording: The call has no recording","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"405":{"description":"method_not_allowed: Only GET in this version","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"429":{"description":"rate_limited: Too many requests; wait the seconds in Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"503":{"description":"pbx_unavailable: The PBX did not answer; try again after Retry-After server_error: A passing fault; try again after Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}}}}},"/api/v1/pbxs":{"get":{"operationId":"pbxs","summary":"PBXs","description":"The organization's PBXs: an ID and a name. In an organization with several, every call, extension and queue carries its pbx_id.","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":[{"id":"2f6a91c4-5b0e-4d7a-9c13-8e2b47d0a615","name":"ראשית"}],"next_cursor":null}}}},"400":{"description":"invalid_request: A wrong parameter, a range over 31 days, or a key sent in the URL instead of the header","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"401":{"description":"invalid_token: The key is missing, wrong, revoked, or unused for 180 days","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"403":{"description":"scope_missing: The key lacks the scope this request needs address_not_allowed: The request came from an IP address outside the key's list organization_inactive: The organization is not active terms_not_accepted: The organization's administrator has not accepted the terms of use yet","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"404":{"description":"not_found: Not found, or not the organization's no_recording: The call has no recording","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"405":{"description":"method_not_allowed: Only GET in this version","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"429":{"description":"rate_limited: Too many requests; wait the seconds in Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"503":{"description":"pbx_unavailable: The PBX did not answer; try again after Retry-After server_error: A passing fault; try again after Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}}}}},"/api/v1/extensions":{"get":{"operationId":"extensions","summary":"Extensions","description":"The organization's active extensions, and the user each belongs to. With state=1 also the phone's state now, from a copy at most 30 seconds old.","x-scope":"extensions.read","parameters":[{"name":"pbx_id","in":"query","required":false,"description":"Only one PBX's extensions.","schema":{"type":"string"},"example":"2f6a91c4-5b0e-4d7a-9c13-8e2b47d0a615"},{"name":"state","in":"query","required":false,"description":"1: also the phone's state (connected, do not disturb, forward always, recording). null: the PBX did not answer for it.","schema":{"type":"string","enum":["1","0"]},"example":"1"}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":[{"id":"7c1d0e42-9a3b-4f6e-b5c8-1d2e3f4a5b60","pbx_id":"2f6a91c4-5b0e-4d7a-9c13-8e2b47d0a615","number":"203","name":"דנה לוי","user_id":"b8e4f1a2-3c5d-4e6f-8a9b-0c1d2e3f4a5b","state":{"connected":true,"do_not_disturb":false,"forward_always":false,"recording":true}}],"next_cursor":null}}}},"400":{"description":"invalid_request: A wrong parameter, a range over 31 days, or a key sent in the URL instead of the header","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"401":{"description":"invalid_token: The key is missing, wrong, revoked, or unused for 180 days","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"403":{"description":"scope_missing: The key lacks the scope this request needs address_not_allowed: The request came from an IP address outside the key's list organization_inactive: The organization is not active terms_not_accepted: The organization's administrator has not accepted the terms of use yet","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"404":{"description":"not_found: Not found, or not the organization's no_recording: The call has no recording","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"405":{"description":"method_not_allowed: Only GET in this version","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"429":{"description":"rate_limited: Too many requests; wait the seconds in Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"503":{"description":"pbx_unavailable: The PBX did not answer; try again after Retry-After server_error: A passing fault; try again after Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}}}}},"/api/v1/users":{"get":{"operationId":"users","summary":"Users","description":"The organization's active users: name, e-mail, job title, department, admin or user, and their extensions. Never a phone number.","x-scope":"users.read","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":[{"id":"b8e4f1a2-3c5d-4e6f-8a9b-0c1d2e3f4a5b","name":"דנה לוי","email":"dana@example.com","job_title":"מכירות","department":"מכירות","role":"user","extensions":[{"pbx_id":"2f6a91c4-5b0e-4d7a-9c13-8e2b47d0a615","number":"203"}]}],"next_cursor":null}}}},"400":{"description":"invalid_request: A wrong parameter, a range over 31 days, or a key sent in the URL instead of the header","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"401":{"description":"invalid_token: The key is missing, wrong, revoked, or unused for 180 days","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"403":{"description":"scope_missing: The key lacks the scope this request needs address_not_allowed: The request came from an IP address outside the key's list organization_inactive: The organization is not active terms_not_accepted: The organization's administrator has not accepted the terms of use yet","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"404":{"description":"not_found: Not found, or not the organization's no_recording: The call has no recording","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"405":{"description":"method_not_allowed: Only GET in this version","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"429":{"description":"rate_limited: Too many requests; wait the seconds in Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"503":{"description":"pbx_unavailable: The PBX did not answer; try again after Retry-After server_error: A passing fault; try again after Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}}}}},"/api/v1/calls":{"get":{"operationId":"calls","summary":"Calls","description":"The organization's calls, newest first. Without from and to: today. Up to 31 days a request, up to 200 calls a page. extension: the organization's extension that took part. other_party: the other side (an outside number, or the other extension of an internal call). initiated_by: who called. direction: in, out or internal. result: answered, missed, busy, failed, or active for a call still going on. The next page: send only cursor=next_cursor. When it is null, this is the last page.","x-scope":"calls.read","parameters":[{"name":"from","in":"query","required":false,"description":"The first day, YYYY-MM-DD (Israel time).","schema":{"type":"string"},"example":"2026-11-01"},{"name":"to","in":"query","required":false,"description":"The last day. Default: today.","schema":{"type":"string"},"example":"2026-11-19"},{"name":"direction","in":"query","required":false,"description":"in, out or internal.","schema":{"type":"string"},"example":"in"},{"name":"extension","in":"query","required":false,"description":"Only one extension's calls.","schema":{"type":"string"},"example":"203"},{"name":"number","in":"query","required":false,"description":"A phone number, written either way (0545550172 or +972545550172).","schema":{"type":"string"},"example":"0545550172"},{"name":"pbx_id","in":"query","required":false,"description":"Only one PBX's calls.","schema":{"type":"string"},"example":"2f6a91c4-5b0e-4d7a-9c13-8e2b47d0a615"},{"name":"limit","in":"query","required":false,"description":"Calls a page, 1 to 200. Default: 100.","schema":{"type":"integer"},"example":"100"},{"name":"cursor","in":"query","required":false,"description":"The previous page's next_cursor, alone.","schema":{"type":"string"},"example":"eyJmcm9tIjoi…"}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":[{"id":"2f6a91c4-1763540000.1234","pbx_id":"2f6a91c4-5b0e-4d7a-9c13-8e2b47d0a615","started_at":"2026-11-19T10:13:20+02:00","direction":"in","result":"answered","extension":{"number":"203","name":"דנה לוי"},"other_party":{"number":"0545550172","name":"אבי"},"initiated_by":"other_party","number_dialed":"0733334560","duration_seconds":130,"talk_seconds":120}],"next_cursor":"eyJmcm9tIjoiMjAyNi0xMS0wMSIsInRvIjoiMjAyNi0xMS0xOSIsIm9mZnNldCI6MTAwfQ"}}}},"400":{"description":"invalid_request: A wrong parameter, a range over 31 days, or a key sent in the URL instead of the header","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"401":{"description":"invalid_token: The key is missing, wrong, revoked, or unused for 180 days","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"403":{"description":"scope_missing: The key lacks the scope this request needs address_not_allowed: The request came from an IP address outside the key's list organization_inactive: The organization is not active terms_not_accepted: The organization's administrator has not accepted the terms of use yet","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"404":{"description":"not_found: Not found, or not the organization's no_recording: The call has no recording","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"405":{"description":"method_not_allowed: Only GET in this version","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"429":{"description":"rate_limited: Too many requests; wait the seconds in Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"503":{"description":"pbx_unavailable: The PBX did not answer; try again after Retry-After server_error: A passing fault; try again after Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}}}}},"/api/v1/calls/{id}":{"get":{"operationId":"call","summary":"A call and its path","description":"One call, and its path in the PBX: the number dialled, a menu, a queue, the extensions that rang and who answered. kind: number, menu, queue, extension, outside, voicemail or other. label is in Hebrew, as on the screen.","x-scope":"calls.read","parameters":[{"name":"id","in":"path","required":true,"description":"The call's id from GET /calls.","schema":{"type":"string"},"example":"2f6a91c4-1763540000.1234"}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"id":"2f6a91c4-1763540000.1234","pbx_id":"2f6a91c4-5b0e-4d7a-9c13-8e2b47d0a615","started_at":"2026-11-19T10:13:20+02:00","direction":"in","result":"answered","extension":{"number":"203","name":"דנה לוי"},"other_party":{"number":"0545550172","name":"אבי"},"initiated_by":"other_party","number_dialed":"0733334560","duration_seconds":130,"talk_seconds":120,"path":[{"at":"2026-11-19T10:13:20+02:00","kind":"number","label":"מספר 073-3334560 · ראשי","wait_seconds":0,"talk_seconds":0,"answered":false},{"at":"2026-11-19T10:13:24+02:00","kind":"queue","label":"תור מכירות (8800)","wait_seconds":6,"talk_seconds":0,"answered":false},{"at":"2026-11-19T10:13:30+02:00","kind":"extension","label":"שלוחה 203 · דנה לוי","wait_seconds":4,"talk_seconds":120,"answered":true}]}}}},"400":{"description":"invalid_request: A wrong parameter, a range over 31 days, or a key sent in the URL instead of the header","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"401":{"description":"invalid_token: The key is missing, wrong, revoked, or unused for 180 days","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"403":{"description":"scope_missing: The key lacks the scope this request needs address_not_allowed: The request came from an IP address outside the key's list organization_inactive: The organization is not active terms_not_accepted: The organization's administrator has not accepted the terms of use yet","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"404":{"description":"not_found: Not found, or not the organization's no_recording: The call has no recording","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"405":{"description":"method_not_allowed: Only GET in this version","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"429":{"description":"rate_limited: Too many requests; wait the seconds in Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"503":{"description":"pbx_unavailable: The PBX did not answer; try again after Retry-After server_error: A passing fault; try again after Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}}}}},"/api/v1/calls/{id}/recording":{"get":{"operationId":"recording","summary":"A recording","description":"A link to the call's recording. The link works without the key, for this recording only, for 5 minutes. A GET on it returns the file (WAV, MP3 or GSM, by Content-Type). Each link is logged in the organization's activity log as a download, in the key's name. Up to 300 links an hour a key. A call with no recording: 404 with no_recording. SpeakApp keeps no recordings: one is there as long as the PBX keeps it.","x-scope":"recordings.read","parameters":[{"name":"id","in":"path","required":true,"description":"The call's id from GET /calls.","schema":{"type":"string"},"example":"2f6a91c4-1763540000.1234"}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"url":"https://app.b-smart.org.il/api/v1/recordings/q3VbT…","expires_at":"2026-11-19T08:20:00.000Z","call_id":"2f6a91c4-1763540000.1234"}}}},"400":{"description":"invalid_request: A wrong parameter, a range over 31 days, or a key sent in the URL instead of the header","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"401":{"description":"invalid_token: The key is missing, wrong, revoked, or unused for 180 days","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"403":{"description":"scope_missing: The key lacks the scope this request needs address_not_allowed: The request came from an IP address outside the key's list organization_inactive: The organization is not active terms_not_accepted: The organization's administrator has not accepted the terms of use yet","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"404":{"description":"not_found: Not found, or not the organization's no_recording: The call has no recording","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"405":{"description":"method_not_allowed: Only GET in this version","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"429":{"description":"rate_limited: Too many requests; wait the seconds in Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"503":{"description":"pbx_unavailable: The PBX did not answer; try again after Retry-After server_error: A passing fault; try again after Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}}}}},"/api/v1/queues":{"get":{"operationId":"queues","summary":"Queues","description":"The organization's queues. With state=1 also their state now: who waits, the longest wait, today's answered and abandoned, and the agents by state.","x-scope":"queues.read","parameters":[{"name":"state","in":"query","required":false,"description":"1: also the state now, from a copy a few seconds old.","schema":{"type":"string","enum":["1","0"]},"example":"1"}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":[{"id":"2f6a91c4-865","pbx_id":"2f6a91c4-5b0e-4d7a-9c13-8e2b47d0a615","number":"8800","name":"מכירות","state":{"waiting":2,"longest_wait_seconds":42,"answered_today":86,"abandoned_today":5,"agent_counts":{"total":6,"available":2,"on_call":3,"paused":1}}}],"next_cursor":null}}}},"400":{"description":"invalid_request: A wrong parameter, a range over 31 days, or a key sent in the URL instead of the header","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"401":{"description":"invalid_token: The key is missing, wrong, revoked, or unused for 180 days","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"403":{"description":"scope_missing: The key lacks the scope this request needs address_not_allowed: The request came from an IP address outside the key's list organization_inactive: The organization is not active terms_not_accepted: The organization's administrator has not accepted the terms of use yet","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"404":{"description":"not_found: Not found, or not the organization's no_recording: The call has no recording","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"405":{"description":"method_not_allowed: Only GET in this version","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"429":{"description":"rate_limited: Too many requests; wait the seconds in Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"503":{"description":"pbx_unavailable: The PBX did not answer; try again after Retry-After server_error: A passing fault; try again after Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}}}}},"/api/v1/queues/{id}/state":{"get":{"operationId":"queueState","summary":"A queue now","description":"One queue now: who waits, in order (the number and the wait), and its agents: available, on_call, ringing, paused or offline, with the pause's reason.","x-scope":"queues.read","parameters":[{"name":"id","in":"path","required":true,"description":"The queue's id from GET /queues.","schema":{"type":"string"},"example":"2f6a91c4-865"}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"id":"2f6a91c4-865","pbx_id":"2f6a91c4-5b0e-4d7a-9c13-8e2b47d0a615","number":"8800","name":"מכירות","waiting":1,"longest_wait_seconds":42,"answered_today":86,"abandoned_today":5,"agent_counts":{"total":2,"available":0,"on_call":1,"paused":1},"callers":[{"position":1,"number":"0355550188","wait_seconds":42}],"agents":[{"extension":"203","name":"דנה לוי","state":"on_call","paused":false,"pause_reason":null,"pause_seconds":null,"calls_taken":31},{"extension":"207","name":"רונית כהן","state":"paused","paused":true,"pause_reason":"הפסקת צהריים","pause_seconds":300,"calls_taken":4}]}}}},"400":{"description":"invalid_request: A wrong parameter, a range over 31 days, or a key sent in the URL instead of the header","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"401":{"description":"invalid_token: The key is missing, wrong, revoked, or unused for 180 days","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"403":{"description":"scope_missing: The key lacks the scope this request needs address_not_allowed: The request came from an IP address outside the key's list organization_inactive: The organization is not active terms_not_accepted: The organization's administrator has not accepted the terms of use yet","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"404":{"description":"not_found: Not found, or not the organization's no_recording: The call has no recording","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"405":{"description":"method_not_allowed: Only GET in this version","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"429":{"description":"rate_limited: Too many requests; wait the seconds in Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"503":{"description":"pbx_unavailable: The PBX did not answer; try again after Retry-After server_error: A passing fault; try again after Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}}}}},"/api/v1/agents":{"get":{"operationId":"agents","summary":"Agents","description":"Every agent of the organization's queues once: the state now and for how long, its queues (logged in or not, paused and why), and today's work. state: available, on_call, ringing, paused, do_not_disturb, offline or logged_out.","x-scope":"queues.read","parameters":[],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":[{"extension":"203","pbx_id":"2f6a91c4-5b0e-4d7a-9c13-8e2b47d0a615","name":"דנה לוי","state":"on_call","seconds_in_state":95,"queues":[{"id":"2f6a91c4-865","name":"מכירות","logged_in":true,"paused":false,"pause_reason":null}],"today":{"answered":31,"outgoing":12,"talk_seconds":5400,"missed":2}}],"next_cursor":null}}}},"400":{"description":"invalid_request: A wrong parameter, a range over 31 days, or a key sent in the URL instead of the header","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"401":{"description":"invalid_token: The key is missing, wrong, revoked, or unused for 180 days","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"403":{"description":"scope_missing: The key lacks the scope this request needs address_not_allowed: The request came from an IP address outside the key's list organization_inactive: The organization is not active terms_not_accepted: The organization's administrator has not accepted the terms of use yet","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"404":{"description":"not_found: Not found, or not the organization's no_recording: The call has no recording","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"405":{"description":"method_not_allowed: Only GET in this version","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"429":{"description":"rate_limited: Too many requests; wait the seconds in Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}},"503":{"description":"pbx_unavailable: The PBX did not answer; try again after Retry-After server_error: A passing fault; try again after Retry-After","headers":{"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}}}}},"/api/v1/recordings/{token}":{"get":{"operationId":"recordingFile","summary":"A recording's file, by its link","security":[],"description":"The url of GET /calls/{id}/recording: no key, 5 minutes, this recording only.","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"The audio file","content":{"audio/wav":{},"audio/mpeg":{}}},"404":{"description":"not_found: Not found, or not the organization's no_recording: The call has no recording","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","invalid_token","scope_missing","address_not_allowed","organization_inactive","terms_not_accepted","not_found","no_recording","method_not_allowed","rate_limited","pbx_unavailable","server_error"]},"message":{"type":"string"}}}}}}}}}}}},"webhooks":{"call.missed":{"post":{"operationId":"callMissed","summary":"Missed call","description":"An incoming call that ended unanswered. Signed: SpeakApp-Signature t=<seconds>,v1=<hex HMAC-SHA256 of \"<t>.<body>\">. Answer 2xx within 5 seconds; retried after 1m, 5m, 30m, 2h, 8h and 24h.","security":[],"parameters":[{"name":"SpeakApp-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1795098930,v1=6f2b0c8e4d1a9f7e3c5b2a0d8e6f4c1b9a7d5e3f1c0b8a6d4e2f0c9b7a5d3e1f"}],"requestBody":{"required":true,"content":{"application/json":{"example":{"id":"evt_5f0c2e9a1b7d4c3e8a6f0b2d9c1e7a4b","type":"call.missed","occurred_at":"2026-11-19T10:15:30+02:00","organization":{"id":"8c1d2b3a-4e5f-4a6b-9c7d-0e1f2a3b4c5d"},"data":{"id":"2f6a91c4-1763540000.1234","pbx_id":"2f6a91c4-5b0e-4d7a-9c13-8e2b47d0a615","started_at":"2026-11-19T10:13:20+02:00","direction":"in","result":"missed","extension":null,"other_party":{"number":"0545550172","name":"אבי"},"initiated_by":"other_party","number_dialed":"0733334560","duration_seconds":34,"talk_seconds":0,"queues":[{"id":"2f6a91c4-865","name":"מכירות"}]}}}}},"responses":{"2XX":{"description":"Taken"}}}},"call.ended":{"post":{"operationId":"callEnded","summary":"Call ended","description":"An answered call (incoming, outgoing or internal) ended. Signed: SpeakApp-Signature t=<seconds>,v1=<hex HMAC-SHA256 of \"<t>.<body>\">. Answer 2xx within 5 seconds; retried after 1m, 5m, 30m, 2h, 8h and 24h.","security":[],"parameters":[{"name":"SpeakApp-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1795098930,v1=6f2b0c8e4d1a9f7e3c5b2a0d8e6f4c1b9a7d5e3f1c0b8a6d4e2f0c9b7a5d3e1f"}],"requestBody":{"required":true,"content":{"application/json":{"example":{"id":"evt_5f0c2e9a1b7d4c3e8a6f0b2d9c1e7a4b","type":"call.ended","occurred_at":"2026-11-19T10:15:30+02:00","organization":{"id":"8c1d2b3a-4e5f-4a6b-9c7d-0e1f2a3b4c5d"},"data":{"id":"2f6a91c4-1763540000.1234","pbx_id":"2f6a91c4-5b0e-4d7a-9c13-8e2b47d0a615","started_at":"2026-11-19T10:13:20+02:00","direction":"in","result":"answered","extension":{"number":"203","name":"דנה לוי"},"other_party":{"number":"0545550172","name":"אבי"},"initiated_by":"other_party","number_dialed":"0733334560","duration_seconds":130,"talk_seconds":120,"queues":[{"id":"2f6a91c4-865","name":"מכירות"}]}}}}},"responses":{"2XX":{"description":"Taken"}}}},"recording.ready":{"post":{"operationId":"recordingReady","summary":"Recording ready","description":"An answered call's recording is kept by the PBX and may be asked for. Signed: SpeakApp-Signature t=<seconds>,v1=<hex HMAC-SHA256 of \"<t>.<body>\">. Answer 2xx within 5 seconds; retried after 1m, 5m, 30m, 2h, 8h and 24h.","security":[],"parameters":[{"name":"SpeakApp-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1795098930,v1=6f2b0c8e4d1a9f7e3c5b2a0d8e6f4c1b9a7d5e3f1c0b8a6d4e2f0c9b7a5d3e1f"}],"requestBody":{"required":true,"content":{"application/json":{"example":{"id":"evt_5f0c2e9a1b7d4c3e8a6f0b2d9c1e7a4b","type":"recording.ready","occurred_at":"2026-11-19T10:16:42+02:00","organization":{"id":"8c1d2b3a-4e5f-4a6b-9c7d-0e1f2a3b4c5d"},"data":{"id":"2f6a91c4-1763540000.1234","pbx_id":"2f6a91c4-5b0e-4d7a-9c13-8e2b47d0a615","started_at":"2026-11-19T10:13:20+02:00","direction":"in","result":"answered","extension":{"number":"203","name":"דנה לוי"},"other_party":{"number":"0545550172","name":"אבי"},"initiated_by":"other_party","number_dialed":"0733334560","duration_seconds":130,"talk_seconds":120,"queues":[{"id":"2f6a91c4-865","name":"מכירות"}]}}}}},"responses":{"2XX":{"description":"Taken"}}}},"bot.handoff":{"post":{"operationId":"botHandoff","summary":"Bot handed over","description":"In Messages: the bot handed a WhatsApp conversation to the agents, with what it gathered. Signed: SpeakApp-Signature t=<seconds>,v1=<hex HMAC-SHA256 of \"<t>.<body>\">. Answer 2xx within 5 seconds; retried after 1m, 5m, 30m, 2h, 8h and 24h.","security":[],"parameters":[{"name":"SpeakApp-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1795098930,v1=6f2b0c8e4d1a9f7e3c5b2a0d8e6f4c1b9a7d5e3f1c0b8a6d4e2f0c9b7a5d3e1f"}],"requestBody":{"required":true,"content":{"application/json":{"example":{"id":"evt_5f0c2e9a1b7d4c3e8a6f0b2d9c1e7a4b","type":"bot.handoff","occurred_at":"2026-11-19T10:15:30+02:00","organization":{"id":"8c1d2b3a-4e5f-4a6b-9c7d-0e1f2a3b4c5d"},"data":{"conversation_id":"3d7f6a1c-9b2e-4c8d-a5f0-1e2d3c4b5a69","number":"97235550100","contact":{"phone":"972545550134","name":"דנה כהן"},"reason":"agent","department":"מכירות","collected":[{"label":"נושא","value":"הצעת מחיר"},{"label":"כמה שלוחות","value":"12"}]}}}}},"responses":{"2XX":{"description":"Taken"}}}},"bot.ended":{"post":{"operationId":"botEnded","summary":"Bot ended","description":"In Messages: the bot closed a WhatsApp conversation with no agent, with what it gathered. Signed: SpeakApp-Signature t=<seconds>,v1=<hex HMAC-SHA256 of \"<t>.<body>\">. Answer 2xx within 5 seconds; retried after 1m, 5m, 30m, 2h, 8h and 24h.","security":[],"parameters":[{"name":"SpeakApp-Signature","in":"header","required":true,"schema":{"type":"string"},"example":"t=1795098930,v1=6f2b0c8e4d1a9f7e3c5b2a0d8e6f4c1b9a7d5e3f1c0b8a6d4e2f0c9b7a5d3e1f"}],"requestBody":{"required":true,"content":{"application/json":{"example":{"id":"evt_5f0c2e9a1b7d4c3e8a6f0b2d9c1e7a4b","type":"bot.ended","occurred_at":"2026-11-19T10:15:30+02:00","organization":{"id":"8c1d2b3a-4e5f-4a6b-9c7d-0e1f2a3b4c5d"},"data":{"conversation_id":"3d7f6a1c-9b2e-4c8d-a5f0-1e2d3c4b5a69","number":"97235550100","contact":{"phone":"972545550134","name":"דנה כהן"},"reason":"end","department":null,"collected":[{"label":"נושא","value":"הצעת מחיר"},{"label":"כמה שלוחות","value":"12"}]}}}}},"responses":{"2XX":{"description":"Taken"}}}}}}