{"openapi":"3.0.0","paths":{"/webhooks/calls":{"get":{"description":"> **Production data warning:** Try It sends requests directly to Sonik production and displays real workspace data. Requests consume workspace rate limits. Use a trusted device, clear the API key field, and close or reload the page when finished.\n\nThe configured callback receives call.ready when a call finishes and call.outcome.updated when its outcome changes. See the [call webhook guide](https://docs.sonik.ai/docs/call-webhooks) for payload examples.","operationId":"getCallWebhook","parameters":[],"responses":{"200":{"headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallWebhookSettingsDTO"}}}},"401":{"description":"Missing or invalid public API key","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"429":{"description":"Workspace-wide public API rate limit exceeded","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}},"Retry-After":{"description":"Seconds until the rejected fixed window resets","schema":{"type":"integer","minimum":1,"example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"500":{"description":"Unexpected Sonik error","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}}},"security":[{"public-api-key":[]}],"summary":"Get call webhook settings","tags":["Webhooks"]},"put":{"callbacks":{"callEvents":{"{$request.body#/url}":{"post":{"summary":"Receive a call snapshot event","parameters":[{"name":"Sonik-Signature","in":"header","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CallReadyWebhookDTO"},{"$ref":"#/components/schemas/CallOutcomeUpdatedWebhookDTO"}]}}}},"responses":{"2XX":{"description":"Event durably accepted"}}}}}},"description":"> **Production data warning:** Try It sends requests directly to Sonik production and displays real workspace data. Requests consume workspace rate limits. Use a trusted device, clear the API key field, and close or reload the page when finished.\n\nOne public HTTPS callback per workspace receives call.ready and call.outcome.updated events. Changing URL rotates the signing secret and cancels undelivered callbacks. Re-enabling starts a new activation period. Repeating the same settings preserves that period and secret. See the [call webhook guide](https://docs.sonik.ai/docs/call-webhooks) for payload examples.","operationId":"saveCallWebhook","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveCallWebhookDTO"}}}},"responses":{"200":{"headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"description":"","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedCallWebhookDTO"}}}},"400":{"description":"Invalid URL, non-public destination, or invalid enabled value","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"401":{"description":"Missing or invalid public API key","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"429":{"description":"Workspace-wide public API rate limit exceeded","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}},"Retry-After":{"description":"Seconds until the rejected fixed window resets","schema":{"type":"integer","minimum":1,"example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"500":{"description":"Unexpected Sonik error","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}}},"security":[{"public-api-key":[]}],"summary":"Configure call webhooks","tags":["Webhooks"]},"delete":{"description":"> **Production data warning:** Try It sends requests directly to Sonik production and displays real workspace data. Requests consume workspace rate limits. Use a trusted device, clear the API key field, and close or reload the page when finished.\n\nClears webhook configuration and cancels undelivered callbacks. Call records and the public API token are preserved. An HTTP request already in flight may still complete.","operationId":"deleteCallWebhook","parameters":[],"responses":{"204":{"description":"Webhook configuration removed","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}}},"401":{"description":"Missing or invalid public API key","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"429":{"description":"Workspace-wide public API rate limit exceeded","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}},"Retry-After":{"description":"Seconds until the rejected fixed window resets","schema":{"type":"integer","minimum":1,"example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"500":{"description":"Unexpected Sonik error","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}}},"security":[{"public-api-key":[]}],"summary":"Remove call webhook settings","tags":["Webhooks"]}},"/webhooks/calls/test":{"post":{"description":"> **Production data warning:** Try It sends requests directly to Sonik production and displays real workspace data. Requests consume workspace rate limits. Use a trusted device, clear the API key field, and close or reload the page when finished.\n\nImmediately sends one signed call.ready or call.outcome.updated event to the saved callback URL. Omit type to send call.ready. Every test event includes `test: true`; live events omit that property. Test deliveries are not stored or retried.","operationId":"testCallWebhook","parameters":[],"requestBody":{"required":false,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestCallWebhookDTO"}}}},"responses":{"204":{"description":"Test webhook accepted by the callback URL","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}}},"400":{"description":"Call webhooks are disabled, no callback URL is configured, or type is unsupported","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"401":{"description":"Missing or invalid public API key","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"429":{"description":"Workspace-wide public API rate limit exceeded","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}},"Retry-After":{"description":"Seconds until the rejected fixed window resets","schema":{"type":"integer","minimum":1,"example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"500":{"description":"Unexpected Sonik error","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"502":{"description":"Callback request failed or returned a non-2xx response","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}}}},"security":[{"public-api-key":[]}],"summary":"Send a test call webhook","tags":["Webhooks"]}},"/calls":{"get":{"description":"> **Production data warning:** Try It sends requests directly to Sonik production and displays real workspace data. Requests consume workspace rate limits. Use a trusted device, clear the API key field, and close or reload the page when finished.\n\nReturns calls newest first. Optional startDate and endDate filter by call creation date in timeZone, or in the workspace reporting time zone when omitted. Without filters all calls are returned. Filtered results use call-history groups and exclude queued calls.","operationId":"listCalls","parameters":[{"name":"timeZone","required":false,"in":"query","description":"IANA time-zone name. Defaults to the workspace reporting time zone.","schema":{"example":"Europe/Berlin","type":"string"}},{"name":"endDate","required":false,"in":"query","description":"Inclusive call creation date range end in YYYY-MM-DD format; must be on or after startDate","schema":{"format":"date","example":"2026-08-19","type":"string"}},{"name":"startDate","required":false,"in":"query","description":"Inclusive call creation date range start in YYYY-MM-DD format","schema":{"format":"date","example":"2026-08-01","type":"string"}},{"name":"statusFilter","required":false,"in":"query","description":"`connected` means a conversation happened; `noAnswer` means no conversation happened","schema":{"type":"string","enum":["connected","noAnswer"],"example":"connected"}},{"name":"pageSize","required":false,"in":"query","description":"Number of calls per page","schema":{"type":"integer","enum":[50,100],"default":50,"example":50}},{"name":"page","required":false,"in":"query","description":"1-based page number","schema":{"type":"integer","minimum":1,"default":1,"example":1}}],"responses":{"200":{"description":"Paginated workspace calls","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedPublicCallsDTO"}}}},"400":{"description":"Invalid pagination, statusFilter, date range, or timeZone","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"401":{"description":"Missing or invalid public API key","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"429":{"description":"Workspace-wide public API rate limit exceeded","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}},"Retry-After":{"description":"Seconds until the rejected fixed window resets","schema":{"type":"integer","minimum":1,"example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"500":{"description":"Unexpected Sonik error","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}}},"security":[{"public-api-key":[]}],"summary":"List workspace calls","tags":["Calls"]}},"/calls/{id}/recording":{"get":{"description":"> **Production data warning:** Try It sends requests directly to Sonik production and displays real workspace data. Requests consume workspace rate limits. Use a trusted device, clear the API key field, and close or reload the page when finished.\n\nStreams audio through Sonik. Use either the public API bearer token or the signed URL returned by GET /calls. The provider recording URL and credentials are never exposed.","operationId":"getCallRecording","parameters":[{"name":"Range","in":"header","description":"Optional HTTP byte range, for example bytes=0-999","required":false,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","description":"Sonik call ID, not provider call SID","schema":{"format":"uuid","example":"33333333-3333-4333-8333-333333333333","type":"string"}}],"responses":{"200":{"description":"Complete call recording audio","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}},"Accept-Ranges":{"description":"Supported byte range unit","schema":{"type":"string","example":"bytes"}},"Content-Length":{"description":"Audio response size in bytes","schema":{"type":"string","example":"123456"}},"Content-Range":{"description":"Returned byte range for partial responses","schema":{"type":"string","example":"bytes 0-999/123456"}},"Content-Disposition":{"description":"Inline Sonik recording filename","schema":{"type":"string","example":"inline; filename=\"recording-33333333-3333-4333-8333-333333333333.mp3\""}}},"content":{"audio/mpeg":{"schema":{"type":"string","format":"binary"}},"audio/wav":{"schema":{"type":"string","format":"binary"}}}},"206":{"description":"Requested recording byte range","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}},"Accept-Ranges":{"description":"Supported byte range unit","schema":{"type":"string","example":"bytes"}},"Content-Length":{"description":"Audio response size in bytes","schema":{"type":"string","example":"123456"}},"Content-Range":{"description":"Returned byte range for partial responses","schema":{"type":"string","example":"bytes 0-999/123456"}},"Content-Disposition":{"description":"Inline Sonik recording filename","schema":{"type":"string","example":"inline; filename=\"recording-33333333-3333-4333-8333-333333333333.mp3\""}}},"content":{"audio/mpeg":{"schema":{"type":"string","format":"binary"}},"audio/wav":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"Invalid or missing call ID","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"audio/mpeg":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}},"audio/wav":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"401":{"description":"Missing or invalid public API key","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"audio/mpeg":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}},"audio/wav":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"404":{"description":"Call or recording not found","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"audio/mpeg":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}},"audio/wav":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"416":{"description":"Requested byte range cannot be satisfied","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}},"Accept-Ranges":{"description":"Supported byte range unit","schema":{"type":"string","example":"bytes"}},"Content-Range":{"description":"Unsatisfied range and complete recording size","schema":{"type":"string","example":"bytes */123456"}}}},"429":{"description":"Workspace-wide public API rate limit exceeded","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}},"Retry-After":{"description":"Seconds until the rejected fixed window resets","schema":{"type":"integer","minimum":1,"example":1}}},"content":{"audio/mpeg":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}},"audio/wav":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"500":{"description":"Unexpected Sonik error","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"audio/mpeg":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}},"audio/wav":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"502":{"description":"Upstream recording provider failed","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"audio/mpeg":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}},"audio/wav":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}}},"security":[{"public-api-key":[]}],"summary":"Stream a call recording","tags":["Calls"]}},"/prospects":{"get":{"description":"> **Production data warning:** Try It sends requests directly to Sonik production and displays real workspace data. Requests consume workspace rate limits. Use a trusted device, clear the API key field, and close or reload the page when finished.\n\nReturns prospects newest first. Use the Sonik prospect id to deduplicate records during synchronization.","operationId":"listProspects","parameters":[{"name":"excludeFromCallingUntilTo","required":false,"in":"query","description":"Include only prospects whose temporary calling exclusion expires at or before this ISO timestamp.","schema":{"type":"string","format":"date-time","example":"2026-09-30T23:59:59.999Z"}},{"name":"excludeFromCallingUntilFrom","required":false,"in":"query","description":"Include only prospects whose temporary calling exclusion expires at or after this ISO timestamp.","schema":{"type":"string","format":"date-time","example":"2026-09-01T00:00:00.000Z"}},{"name":"excludeFromCalling","required":false,"in":"query","description":"Filter prospects by their current calling exclusion state. Use true to fetch excluded prospects only.","schema":{"type":"boolean","example":true}},{"name":"pageSize","required":false,"in":"query","description":"Number of prospects per page","schema":{"type":"integer","enum":[50,100],"default":50,"example":50}},{"name":"page","required":false,"in":"query","description":"1-based page number","schema":{"type":"integer","minimum":1,"default":1,"example":1}}],"responses":{"200":{"description":"Paginated workspace prospects","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedPublicProspectsDTO"}}}},"400":{"description":"Invalid pagination","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"401":{"description":"Missing or invalid public API key","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"429":{"description":"Workspace-wide public API rate limit exceeded","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}},"Retry-After":{"description":"Seconds until the rejected fixed window resets","schema":{"type":"integer","minimum":1,"example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"500":{"description":"Unexpected Sonik error","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}}},"security":[{"public-api-key":[]}],"summary":"List workspace prospects","tags":["Prospects"]}},"/prospects/{id}":{"get":{"description":"> **Production data warning:** Try It sends requests directly to Sonik production and displays real workspace data. Requests consume workspace rate limits. Use a trusted device, clear the API key field, and close or reload the page when finished.\n\nReturns one prospect from the authenticated workspace by stable Sonik prospect id.","operationId":"getProspect","parameters":[{"name":"id","required":true,"in":"path","description":"Stable Sonik prospect identifier","schema":{"type":"string","format":"uuid","example":"55555555-5555-4555-8555-555555555555"}}],"responses":{"200":{"description":"Workspace prospect","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicProspectDTO"}}}},"400":{"description":"Invalid or missing query parameter","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"401":{"description":"Missing or invalid public API key","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"404":{"description":"No prospect in the authenticated workspace matched the id","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"429":{"description":"Workspace-wide public API rate limit exceeded","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}},"Retry-After":{"description":"Seconds until the rejected fixed window resets","schema":{"type":"integer","minimum":1,"example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"500":{"description":"Unexpected Sonik error","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}}},"security":[{"public-api-key":[]}],"summary":"Get a workspace prospect","tags":["Prospects"]}},"/prospects/{id}/notes":{"post":{"description":"> **Production data warning:** Try It sends requests directly to Sonik production and displays real workspace data. Requests consume workspace rate limits. Use a trusted device, clear the API key field, and close or reload the page when finished.\n\nCreates a note activity on one prospect in the authenticated workspace. The note author is the creator of the Public API token.","operationId":"createProspectNote","parameters":[{"name":"id","required":true,"in":"path","description":"Stable Sonik prospect identifier","schema":{"type":"string","format":"uuid","example":"55555555-5555-4555-8555-555555555555"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePublicProspectNoteRequestDTO"}}}},"responses":{"201":{"description":"Created note activity","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicProspectNoteActivityDTO"}}}},"400":{"description":"Invalid note payload","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"401":{"description":"Missing or invalid public API key","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"404":{"description":"No prospect in the authenticated workspace matched the id","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"429":{"description":"Workspace-wide public API rate limit exceeded","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}},"Retry-After":{"description":"Seconds until the rejected fixed window resets","schema":{"type":"integer","minimum":1,"example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"500":{"description":"Unexpected Sonik error","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}}},"security":[{"public-api-key":[]}],"summary":"Create a prospect note","tags":["Prospects"]}},"/prospect-activities":{"get":{"description":"> **Production data warning:** Try It sends requests directly to Sonik production and displays real workspace data. Requests consume workspace rate limits. Use a trusted device, clear the API key field, and close or reload the page when finished.\n\nFinds one workspace prospect by normalized phone number or email and returns all call, SMS, note, and task activities newest first. Phone takes precedence when both lookups are supplied.","operationId":"listProspectActivities","parameters":[{"name":"email","required":false,"in":"query","description":"Prospect email address. Required when normalizedPhoneNumber is omitted.","schema":{"format":"email","example":"alex@example.com","type":"string"}},{"name":"normalizedPhoneNumber","required":false,"in":"query","description":"Normalized international phone number. Required when email is omitted and preferred when both are supplied.","schema":{"example":"33639980002","type":"string"}}],"responses":{"200":{"description":"Matching prospect and complete activity timeline","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicProspectActivitiesDTO"}}}},"400":{"description":"Neither prospect lookup was supplied","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"401":{"description":"Missing or invalid public API key","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"404":{"description":"No prospect matched the provided lookup","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"429":{"description":"Workspace-wide public API rate limit exceeded","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}},"Retry-After":{"description":"Seconds until the rejected fixed window resets","schema":{"type":"integer","minimum":1,"example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"500":{"description":"Unexpected Sonik error","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}}},"security":[{"public-api-key":[]}],"summary":"Get a prospect activity timeline","tags":["Prospects"]}},"/users":{"get":{"description":"> **Production data warning:** Try It sends requests directly to Sonik production and displays real workspace data. Requests consume workspace rate limits. Use a trusted device, clear the API key field, and close or reload the page when finished.\n\nReturns all non-deleted users belonging to the workspace. This endpoint has no pagination or filters; ordering is not guaranteed.","operationId":"listUsers","parameters":[],"responses":{"200":{"description":"All non-deleted workspace users","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicUsersDTO"}}}},"401":{"description":"Missing or invalid public API key","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"429":{"description":"Workspace-wide public API rate limit exceeded","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}},"Retry-After":{"description":"Seconds until the rejected fixed window resets","schema":{"type":"integer","minimum":1,"example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"500":{"description":"Unexpected Sonik error","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}}},"security":[{"public-api-key":[]}],"summary":"List workspace users","tags":["Users"]}},"/reporting/dialer-metrics":{"get":{"description":"> **Production data warning:** Try It sends requests directly to Sonik production and displays real workspace data. Requests consume workspace rate limits. Use a trusted device, clear the API key field, and close or reload the page when finished.\n\nReturns aggregate dialer KPIs for an inclusive date range. Omit both dates to use the current day. Dates and the current day are interpreted in timeZone, or in the workspace reporting time zone when omitted.","operationId":"getDialerMetrics","parameters":[{"name":"timeZone","required":false,"in":"query","description":"IANA time-zone name. Defaults to the workspace reporting time zone.","schema":{"example":"Europe/Berlin","type":"string"}},{"name":"endDate","required":false,"in":"query","description":"Inclusive range end in YYYY-MM-DD format. Must be provided with startDate and be on or after it; omit both for the current day.","schema":{"format":"date","example":"2026-08-19","type":"string"}},{"name":"startDate","required":false,"in":"query","description":"Inclusive range start in YYYY-MM-DD format. Must be provided with endDate; omit both for the current day.","schema":{"format":"date","example":"2026-08-01","type":"string"}}],"responses":{"200":{"description":"Workspace dialer KPIs for the requested range","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicDialerMetricsDTO"}}}},"400":{"description":"Invalid date range or timeZone","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"401":{"description":"Missing or invalid public API key","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"429":{"description":"Workspace-wide public API rate limit exceeded","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}},"Retry-After":{"description":"Seconds until the rejected fixed window resets","schema":{"type":"integer","minimum":1,"example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"500":{"description":"Unexpected Sonik error","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}}},"security":[{"public-api-key":[]}],"summary":"Get workspace dialer metrics","tags":["Reporting"]}},"/lists":{"get":{"description":"> **Production data warning:** Try It sends requests directly to Sonik production and displays real workspace data. Requests consume workspace rate limits. Use a trusted device, clear the API key field, and close or reload the page when finished.\n\nReturns dialer lists for the authenticated workspace, newest first.","operationId":"listLists","parameters":[{"name":"pageSize","required":false,"in":"query","description":"Number of lists per page","schema":{"type":"integer","enum":[50,100],"default":50,"example":50}},{"name":"page","required":false,"in":"query","description":"1-based page number","schema":{"type":"integer","minimum":1,"default":1,"example":1}}],"responses":{"200":{"description":"Paginated workspace dialer lists","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedPublicDialerListsDTO"}}}},"400":{"description":"Invalid pagination","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"401":{"description":"Missing or invalid public API key","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"429":{"description":"Workspace-wide public API rate limit exceeded","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}},"Retry-After":{"description":"Seconds until the rejected fixed window resets","schema":{"type":"integer","minimum":1,"example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"500":{"description":"Unexpected Sonik error","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}}},"security":[{"public-api-key":[]}],"summary":"List dialer lists","tags":["Lists"]},"post":{"description":"> **Production data warning:** Try It sends requests directly to Sonik production and displays real workspace data. Requests consume workspace rate limits. Use a trusted device, clear the API key field, and close or reload the page when finished.\n\nCreates an empty manual dialer list for the authenticated workspace.","operationId":"createList","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePublicDialerListRequestDTO"}}}},"responses":{"201":{"description":"Created dialer list","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePublicDialerListResponseDTO"}}}},"400":{"description":"Invalid list payload","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"401":{"description":"Missing or invalid public API key","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"429":{"description":"Workspace-wide public API rate limit exceeded","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}},"Retry-After":{"description":"Seconds until the rejected fixed window resets","schema":{"type":"integer","minimum":1,"example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"500":{"description":"Unexpected Sonik error","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}}},"security":[{"public-api-key":[]}],"summary":"Create a dialer list","tags":["Lists"]}},"/lists/{listId}/contacts":{"get":{"description":"> **Production data warning:** Try It sends requests directly to Sonik production and displays real workspace data. Requests consume workspace rate limits. Use a trusted device, clear the API key field, and close or reload the page when finished.\n\nReturns contacts in a dialer list with current list status, latest call outcome, and do-not-call state.","operationId":"listListContacts","parameters":[{"name":"listId","required":true,"in":"path","description":"Dialer list id","schema":{"format":"uuid","example":"11111111-1111-4111-8111-111111111111","type":"string"}},{"name":"pageSize","required":false,"in":"query","description":"Number of contacts per page","schema":{"type":"integer","enum":[50,100],"default":50,"example":50}},{"name":"page","required":false,"in":"query","description":"1-based page number","schema":{"type":"integer","minimum":1,"default":1,"example":1}}],"responses":{"200":{"description":"Paginated contacts in the dialer list","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedPublicListContactsDTO"}}}},"400":{"description":"Invalid pagination","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"401":{"description":"Missing or invalid public API key","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"404":{"description":"Dialer list not found","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"429":{"description":"Workspace-wide public API rate limit exceeded","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}},"Retry-After":{"description":"Seconds until the rejected fixed window resets","schema":{"type":"integer","minimum":1,"example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"500":{"description":"Unexpected Sonik error","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}}},"security":[{"public-api-key":[]}],"summary":"List contacts in a dialer list","tags":["Lists"]},"post":{"description":"> **Production data warning:** Try It sends requests directly to Sonik production and displays real workspace data. Requests consume workspace rate limits. Use a trusted device, clear the API key field, and close or reload the page when finished.\n\nAdds up to 100 contacts to an existing dialer list in the authenticated workspace.","operationId":"uploadListContacts","parameters":[{"name":"listId","required":true,"in":"path","description":"Dialer list id","schema":{"format":"uuid","example":"11111111-1111-4111-8111-111111111111","type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadPublicListContactsRequestDTO"}}}},"responses":{"200":{"description":"Contacts accepted for the list","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadPublicListContactsResponseDTO"}}}},"400":{"description":"Invalid contact payload","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"401":{"description":"Missing or invalid public API key","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"404":{"description":"Dialer list not found","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"429":{"description":"Workspace-wide public API rate limit exceeded","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}},"Retry-After":{"description":"Seconds until the rejected fixed window resets","schema":{"type":"integer","minimum":1,"example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"500":{"description":"Unexpected Sonik error","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}}},"security":[{"public-api-key":[]}],"summary":"Upload contacts to a dialer list","tags":["Lists"]},"delete":{"description":"> **Production data warning:** Try It sends requests directly to Sonik production and displays real workspace data. Requests consume workspace rate limits. Use a trusted device, clear the API key field, and close or reload the page when finished.\n\nRemoves all contacts matching exactly one provided email or phone number from an existing dialer list in the authenticated workspace.","operationId":"removeListContact","parameters":[{"name":"listId","required":true,"in":"path","description":"Dialer list id","schema":{"format":"uuid","example":"11111111-1111-4111-8111-111111111111","type":"string"}},{"name":"phoneNumber","required":false,"in":"query","description":"Phone number of contacts to remove. Required when email is omitted.","schema":{"example":"+33639980002","type":"string"}},{"name":"email","required":false,"in":"query","description":"Email address of contacts to remove. Required when phoneNumber is omitted.","schema":{"format":"email","example":"alex.morgan@example.com","type":"string"}}],"responses":{"200":{"description":"Matching contacts removed from the list","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RemovePublicListContactResponseDTO"}}}},"400":{"description":"Invalid contact lookup","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"401":{"description":"Missing or invalid public API key","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"404":{"description":"Dialer list not found","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"429":{"description":"Workspace-wide public API rate limit exceeded","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}},"Retry-After":{"description":"Seconds until the rejected fixed window resets","schema":{"type":"integer","minimum":1,"example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"500":{"description":"Unexpected Sonik error","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}}},"security":[{"public-api-key":[]}],"summary":"Remove contacts from a dialer list","tags":["Lists"]}},"/lists/{listId}":{"delete":{"description":"> **Production data warning:** Try It sends requests directly to Sonik production and displays real workspace data. Requests consume workspace rate limits. Use a trusted device, clear the API key field, and close or reload the page when finished.\n\nDeletes a dialer list and removes its contacts from the list. Contact records are preserved.","operationId":"deleteList","parameters":[{"name":"listId","required":true,"in":"path","description":"Dialer list id","schema":{"format":"uuid","example":"11111111-1111-4111-8111-111111111111","type":"string"}}],"responses":{"204":{"description":"Dialer list deleted","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}}},"401":{"description":"Missing or invalid public API key","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"404":{"description":"Dialer list not found","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"429":{"description":"Workspace-wide public API rate limit exceeded","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}},"Retry-After":{"description":"Seconds until the rejected fixed window resets","schema":{"type":"integer","minimum":1,"example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"500":{"description":"Unexpected Sonik error","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}}},"security":[{"public-api-key":[]}],"summary":"Delete a dialer list","tags":["Lists"]}},"/workspace/client-and-exclusion-lists/import":{"post":{"description":"> **Production data warning:** Try It sends requests directly to Sonik production and displays real workspace data. Requests consume workspace rate limits. Use a trusted device, clear the API key field, and close or reload the page when finished.\n\nAppends JSON-row imports to CRM clients, company exclusions, and contact exclusions for the authenticated workspace.","operationId":"importClientAndExclusionLists","parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicClientAndExclusionListsImportRequestDTO"}}}},"responses":{"200":{"description":"Import result counts for CRM clients, company exclusions, and contact exclusions","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicClientAndExclusionListsImportResponseDTO"}}}},"400":{"description":"Invalid client or exclusion import payload","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"401":{"description":"Missing or invalid public API key","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"429":{"description":"Workspace-wide public API rate limit exceeded","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}},"Retry-After":{"description":"Seconds until the rejected fixed window resets","schema":{"type":"integer","minimum":1,"example":1}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}},"500":{"description":"Unexpected Sonik error","headers":{"Cache-Control":{"description":"Prevents storage of workspace data by browsers and intermediaries","schema":{"type":"string","example":"private, no-store"}},"x-correlation-id":{"description":"Correlation identifier propagated through Sonik services","schema":{"type":"string","example":"backend-550e8400-e29b-41d4-a716-446655440000"}},"x-request-id":{"description":"Identifier for this HTTP request","schema":{"type":"string","example":"550e8400-e29b-41d4-a716-446655440000"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicApiErrorDTO"}}}}},"security":[{"public-api-key":[]}],"summary":"Import clients and exclusions","tags":["Workspace"]}}},"info":{"title":"Sonik.ai Public API","description":"Integrate Sonik calls, recordings, dialer lists, prospects, activities, users, and dialer KPIs with a CRM or another server-side system.\n\n> **Production data warning:** Try It sends requests directly to Sonik production and displays real workspace data. Requests consume workspace rate limits. Use a trusted device, clear the API key field, and close or reload the page when finished.","version":"v1","contact":{}},"tags":[{"name":"Webhooks","description":"Configure delivery of call events"},{"name":"Calls","description":"List calls and stream call recordings"},{"name":"Lists","description":"Create dialer lists and upload contacts"},{"name":"Prospects","description":"List prospects and retrieve prospect activity timelines"},{"name":"Users","description":"List users in the authenticated workspace"},{"name":"Workspace","description":"Import workspace clients and exclusions"},{"name":"Reporting","description":"Retrieve workspace dialer KPIs"}],"servers":[{"url":"https://api.sonik.ai/v1","description":"production environment"}],"components":{"securitySchemes":{"public-api-key":{"scheme":"bearer","bearerFormat":"API key","type":"http","description":"Sonik.ai workspace API key"}},"schemas":{"PublicCallProspectSummaryDTO":{"type":"object","properties":{"id":{"type":"string","description":"Stable Sonik prospect identifier","format":"uuid","example":"55555555-5555-4555-8555-555555555555"},"firstName":{"type":"string","description":"Prospect first name","example":"Alex"},"lastName":{"type":"string","description":"Prospect last name","example":"Morgan"}},"required":["id"]},"PublicCallDTO":{"type":"object","properties":{"id":{"type":"string","description":"Stable Sonik call identifier","format":"uuid","example":"33333333-3333-4333-8333-333333333333"},"userId":{"type":"string","description":"Sonik user who owns or placed the call","format":"uuid","example":"44444444-4444-4444-8444-444444444444"},"direction":{"type":"string","description":"Call direction","enum":["inbound","outbound"],"example":"outbound"},"from":{"type":"string","description":"Originating phone number","example":"+33639980001"},"to":{"type":"string","description":"Destination phone number","example":"+33639980002"},"status":{"type":"string","description":"Call lifecycle status","enum":["queued","initiated","ringing","answered","in-progress","completed","failed","busy","no-answer","canceled"],"example":"completed"},"startedAt":{"type":"string","description":"When dialing started","format":"date-time","example":"2026-08-20T09:30:00.000Z"},"endedAt":{"type":"string","description":"When the call ended","format":"date-time","example":"2026-08-20T09:32:05.000Z"},"duration":{"type":"number","description":"Call duration in seconds","minimum":0,"example":125},"outcome":{"type":"string","description":"Configured call outcome","example":"Meeting booked"},"listName":{"type":"string","description":"Dialer list name captured when the call was placed","example":"Outbound Q1"},"prospect":{"description":"Unique workspace prospect matched to this call by phone number","allOf":[{"$ref":"#/components/schemas/PublicCallProspectSummaryDTO"}]},"recordingUrl":{"type":"string","description":"Signed Sonik URL that downloads the recording when available. The URL expires after 24 hours.","format":"uri","example":"https://api.sonik.ai/v1/calls/33333333-3333-4333-8333-333333333333/recording?workspaceId=11111111-1111-4111-8111-111111111111&expiresAt=1788422400000&signature=abcdef123456"},"transcription":{"type":"string","description":"Full call transcription, returned only when available and transcription is enabled for the workspace","example":"Speaker 1: Hello, thanks for taking the call.\nSpeaker 2: Happy to speak with you."},"transcriptionSummary":{"type":"string","description":"AI-generated transcription summary, returned only when available and enabled for the workspace","example":"Prospect requested a product demonstration next Tuesday."},"meetingBookedAt":{"type":"string","description":"When a meeting was booked from this call","format":"date-time","example":"2026-08-20T09:31:45.000Z"},"meetingBookedByUserId":{"type":"string","description":"Sonik user who booked the meeting from this call","format":"uuid","example":"44444444-4444-4444-8444-444444444444"},"createdAt":{"type":"string","description":"When the call record was created","format":"date-time","example":"2026-08-20T09:29:58.000Z"},"updatedAt":{"type":"string","description":"When the call record was last updated","format":"date-time","example":"2026-08-20T09:32:06.000Z"}},"required":["id","userId","direction","from","to","status","createdAt","updatedAt"]},"CallReadyWebhookDTO":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Stable event ID; deduplicate using this value"},"type":{"type":"string","enum":["call.ready"]},"occurredAt":{"type":"string","format":"date-time","description":"When the call snapshot became ready for delivery"},"workspaceId":{"type":"string","format":"uuid"},"test":{"type":"boolean","example":true,"description":"Present and true only for test deliveries. Live deliveries omit this property."},"summaryStatus":{"type":"string","enum":["ready","not_applicable","disabled","unavailable"]},"data":{"$ref":"#/components/schemas/PublicCallDTO"}},"required":["id","type","occurredAt","workspaceId","summaryStatus","data"]},"CallOutcomeUpdatedWebhookDTO":{"type":"object","properties":{"id":{"type":"string","format":"uuid","description":"Stable event ID; deduplicate using this value"},"type":{"type":"string","enum":["call.outcome.updated"]},"occurredAt":{"type":"string","format":"date-time","description":"When the call outcome changed"},"workspaceId":{"type":"string","format":"uuid"},"test":{"type":"boolean","example":true,"description":"Present and true only for test deliveries. Live deliveries omit this property."},"data":{"$ref":"#/components/schemas/PublicCallDTO"}},"required":["id","type","occurredAt","workspaceId","data"]},"CallWebhookSettingsDTO":{"type":"object","properties":{"url":{"type":"string","nullable":true,"example":"https://client.example/webhooks/sonik"},"enabled":{"type":"boolean","default":false},"enabledAt":{"type":"string","format":"date-time","nullable":true},"signingSecret":{"type":"string","nullable":true,"description":"Signing secret used to verify webhook signatures. Keep it secure.","example":"whsec_example"}},"required":["url","enabled","enabledAt","signingSecret"]},"PublicApiErrorDTO":{"type":"object","properties":{"statusCode":{"type":"number","description":"HTTP status code","example":400},"message":{"type":"string","description":"Safe error message","example":"page must be a positive integer"},"error":{"type":"string","description":"HTTP error label when supplied by NestJS","example":"Bad Request"}},"required":["statusCode","message"]},"SaveCallWebhookDTO":{"type":"object","properties":{"url":{"type":"string","description":"Public HTTPS callback URL","example":"https://client.example/webhooks/sonik"},"enabled":{"type":"boolean","description":"Whether to deliver call events","example":true}},"required":["url","enabled"]},"SavedCallWebhookDTO":{"type":"object","properties":{"url":{"type":"string","nullable":true,"example":"https://client.example/webhooks/sonik"},"enabled":{"type":"boolean","default":false},"enabledAt":{"type":"string","format":"date-time","nullable":true},"signingSecret":{"type":"string","nullable":true,"description":"Signing secret used to verify webhook signatures. Keep it secure.","example":"whsec_example"}},"required":["url","enabled","enabledAt","signingSecret"]},"TestCallWebhookDTO":{"type":"object","properties":{"type":{"type":"string","enum":["call.ready","call.outcome.updated"],"default":"call.ready","description":"Event type to send. Omit to send call.ready."}}},"PaginatedPublicCallsDTO":{"type":"object","properties":{"calls":{"description":"Calls in this page, ordered newest first","type":"array","items":{"$ref":"#/components/schemas/PublicCallDTO"}},"total":{"type":"number","description":"Total calls matching the request","minimum":0,"example":125},"page":{"type":"number","description":"Current 1-based page number","minimum":1,"default":1,"example":1},"pageSize":{"type":"number","description":"Requested number of calls per page","enum":[50,100],"default":50,"example":50},"hasMore":{"type":"boolean","description":"Whether a later page exists","example":true}},"required":["calls","total","page","pageSize","hasMore"]},"PublicProspectDTO":{"type":"object","properties":{"id":{"type":"string","description":"Stable Sonik prospect identifier","format":"uuid","example":"55555555-5555-4555-8555-555555555555"},"firstName":{"type":"string","description":"Prospect first name","example":"Alex"},"lastName":{"type":"string","description":"Prospect last name","example":"Morgan"},"phoneNumber":{"type":"string","description":"Original prospect phone number","example":"+33639980002"},"normalizedPhoneNumber":{"type":"string","description":"Normalized international phone number used for matching","example":"33639980002"},"companyName":{"type":"string","description":"Company display name; may fall back to companyDomain","example":"Example GmbH"},"companyDomain":{"type":"string","description":"Company internet domain","example":"example.com"},"jobTitle":{"type":"string","description":"Prospect job title","example":"Head of Sales"},"linkedinUrl":{"type":"string","description":"Prospect LinkedIn profile URL","format":"uri","example":"https://www.linkedin.com/in/alex-morgan"},"profileImageUrl":{"type":"string","description":"Prospect profile image URL","format":"uri","example":"https://cdn.example.com/prospects/alex.jpg"},"status":{"type":"string","description":"Current prospect status","enum":["OUT","MEETING_BOOKED","NEW"],"nullable":true,"example":"NEW"},"outcome":{"type":"string","description":"Most recent call outcome for the prospect","nullable":true,"example":"Meeting booked"},"excludeFromCalling":{"type":"boolean","description":"Whether the prospect is currently excluded from calling","example":false},"excludeFromCallingUntil":{"type":"string","description":"Timestamp when the temporary calling exclusion expires","format":"date-time","example":"2026-09-10T00:00:00.000Z"}},"required":["id","status","outcome","excludeFromCalling"]},"PaginatedPublicProspectsDTO":{"type":"object","properties":{"prospects":{"description":"Prospects in this page, ordered newest first","type":"array","items":{"$ref":"#/components/schemas/PublicProspectDTO"}},"total":{"type":"number","description":"Total prospects matching the request","minimum":0,"example":250},"page":{"type":"number","description":"Current 1-based page number","minimum":1,"default":1,"example":1},"pageSize":{"type":"number","description":"Requested number of prospects per page","enum":[50,100],"default":50,"example":50},"hasMore":{"type":"boolean","description":"Whether a later page exists","example":true}},"required":["prospects","total","page","pageSize","hasMore"]},"CreatePublicProspectNoteRequestDTO":{"type":"object","properties":{"content":{"type":"string","description":"Content of the note to create on the prospect","example":"Follow up next week about pricing."}},"required":["content"]},"PublicProspectNoteActivityDTO":{"type":"object","properties":{"id":{"type":"string","description":"Stable Sonik activity identifier","format":"uuid","example":"77777777-7777-4777-8777-777777777777"},"type":{"type":"string","description":"Activity type","enum":["note"],"example":"note"},"createdAt":{"type":"string","description":"When the note was created","format":"date-time","example":"2026-08-14T10:30:00.000Z"},"content":{"type":"string","description":"Display text for the note activity","example":"Follow up next week about pricing."}},"required":["id","type","createdAt","content"]},"PublicProspectActivityDTO":{"type":"object","properties":{"type":{"type":"string","description":"Activity type","enum":["call","note","sms","task"],"example":"call"},"createdAt":{"type":"string","description":"When the activity was created","format":"date-time","example":"2026-08-14T10:30:00Z"},"callDirection":{"type":"string","description":"Call direction for call activities","enum":["inbound","outbound"],"example":"inbound"},"fromNumber":{"type":"string","description":"Phone number the activity was sent from","example":"+33639980001"},"toNumber":{"type":"string","description":"Phone number the activity was sent to","example":"+33639980002"},"status":{"type":"string","description":"Call or task status","example":"completed"},"duration":{"type":"number","description":"Call duration in seconds","minimum":0,"example":120},"outcome":{"type":"string","description":"Configured outcome for a call activity","example":"Meeting booked"},"transcriptionSummary":{"type":"string","description":"AI-generated transcription summary for a call, returned only when available and enabled for the workspace","example":"Prospect requested pricing and a follow-up meeting."},"meetingBookedAt":{"type":"string","description":"When a meeting was booked from a call activity","format":"date-time","example":"2026-08-14T10:31:30.000Z"},"meetingBookedByUserId":{"type":"string","description":"Sonik user who booked the meeting from a call activity","format":"uuid","example":"44444444-4444-4444-8444-444444444444"},"content":{"type":"string","description":"Display text for note or SMS activities","example":"Follow up next week"},"title":{"type":"string","description":"Display title for task activities","example":"Follow up with prospect"},"dueDate":{"type":"string","description":"Due date for task activities","format":"date-time","example":"2026-08-15T00:00:00Z"},"completedAt":{"type":"string","description":"Completion date for task activities","format":"date-time","example":"2026-08-15T10:30:00Z"}},"required":["type","createdAt"]},"PublicProspectActivitiesDTO":{"type":"object","properties":{"prospect":{"description":"Prospect matched by normalized phone number or email","allOf":[{"$ref":"#/components/schemas/PublicProspectDTO"}]},"activities":{"description":"Complete unpaginated activity timeline, ordered newest first","type":"array","items":{"$ref":"#/components/schemas/PublicProspectActivityDTO"}}},"required":["prospect","activities"]},"PublicUserDTO":{"type":"object","properties":{"id":{"type":"string","description":"Stable Sonik user identifier","format":"uuid","example":"44444444-4444-4444-8444-444444444444"},"email":{"type":"string","description":"User email address","format":"email","example":"alex@example.com"},"firstName":{"type":"string","description":"User first name","example":"Alex"},"lastName":{"type":"string","description":"User last name","example":"Morgan"},"role":{"type":"string","description":"Workspace role","enum":["admin","member","viewer"],"example":"member"},"assignedNumbers":{"description":"Phone numbers assigned to the user","example":["+33639980001","+33639980002"],"type":"array","items":{"type":"string"}}},"required":["id","email","firstName","lastName","role","assignedNumbers"]},"PublicUsersDTO":{"type":"object","properties":{"users":{"description":"Non-deleted workspace users; ordering is not guaranteed","type":"array","items":{"$ref":"#/components/schemas/PublicUserDTO"}}},"required":["users"]},"PublicDialerPipelineGeneratedDTO":{"type":"object","properties":{"amount":{"type":"number","description":"Estimated pipeline amount: meetingsBooked multiplied by the workspace average deal size","minimum":0,"example":748000},"currency":{"type":"string","description":"Workspace currency for the estimated pipeline amount","enum":["EUR","USD","GBP"],"example":"EUR"}},"required":["amount","currency"]},"PublicDialerMetricsDTO":{"type":"object","properties":{"dials":{"type":"number","description":"Calls dialed during the requested date range","minimum":0,"example":9747},"connects":{"type":"number","description":"Calls where a conversation happened","minimum":0,"example":1296},"meetingsBooked":{"type":"number","description":"Meetings booked from calls","minimum":0,"example":68},"dialingTimeSpentSeconds":{"type":"number","description":"Total dialing time in seconds","minimum":0,"example":551255},"timeSavedAvoidingVoicemailsSeconds":{"type":"number","description":"Estimated seconds saved by avoiding voicemail time","minimum":0,"example":1102510},"talkTimeSeconds":{"type":"number","description":"Total talk time for connected calls in seconds","minimum":0,"example":125665},"averageTalkTimeSecondsPerUserCallingDay":{"type":"number","description":"Talk time divided by active user calling days, rounded to seconds","minimum":0,"example":1591},"pipelineGenerated":{"description":"Estimated pipeline value, or null when the workspace has no average deal size configured","nullable":true,"allOf":[{"$ref":"#/components/schemas/PublicDialerPipelineGeneratedDTO"}]}},"required":["dials","connects","meetingsBooked","dialingTimeSpentSeconds","timeSavedAvoidingVoicemailsSeconds","talkTimeSeconds","averageTalkTimeSecondsPerUserCallingDay","pipelineGenerated"]},"PublicDialerListDTO":{"type":"object","properties":{"id":{"type":"string","description":"Stable Sonik dialer list identifier","format":"uuid","example":"11111111-1111-4111-8111-111111111111"},"name":{"type":"string","description":"List display name","example":"September outbound list"},"source":{"type":"string","description":"List source","enum":["CSV","Hubspot","Salesforce","Pipedrive"],"example":"CSV"},"ownerUserId":{"type":"string","description":"Workspace user who owns the dialer list","format":"uuid","example":"22222222-2222-4222-8222-222222222222"},"createdAt":{"type":"string","description":"List creation timestamp","format":"date-time","example":"2026-09-07T09:00:00.000Z"},"updatedAt":{"type":"string","description":"List last update timestamp","format":"date-time","example":"2026-09-07T09:00:00.000Z"},"prospectsCount":{"type":"number","description":"Number of prospects currently attached to the list","minimum":0,"example":100}},"required":["id","name","source","ownerUserId","createdAt","updatedAt","prospectsCount"]},"PaginatedPublicDialerListsDTO":{"type":"object","properties":{"lists":{"description":"Lists in this page, ordered newest first","type":"array","items":{"$ref":"#/components/schemas/PublicDialerListDTO"}},"total":{"type":"number","description":"Total lists matching the request","minimum":0,"example":250},"page":{"type":"number","description":"Current 1-based page number","minimum":1,"default":1,"example":1},"pageSize":{"type":"number","description":"Requested number of lists per page","enum":[50,100],"default":50,"example":50},"hasMore":{"type":"boolean","description":"Whether a later page exists","example":true}},"required":["lists","total","page","pageSize","hasMore"]},"PublicListContactDTO":{"type":"object","properties":{"id":{"type":"string","description":"Stable Sonik prospect identifier","format":"uuid","example":"55555555-5555-4555-8555-555555555555"},"firstName":{"type":"string","description":"Prospect first name","example":"Alex"},"lastName":{"type":"string","description":"Prospect last name","example":"Morgan"},"phoneNumber":{"type":"string","description":"Original prospect phone number","example":"+33639980002"},"normalizedPhoneNumber":{"type":"string","description":"Normalized international phone number used for matching","example":"33639980002"},"companyName":{"type":"string","description":"Company display name; may fall back to companyDomain","example":"Example GmbH"},"companyDomain":{"type":"string","description":"Company internet domain","example":"example.com"},"jobTitle":{"type":"string","description":"Prospect job title","example":"Head of Sales"},"linkedinUrl":{"type":"string","description":"Prospect LinkedIn profile URL","format":"uri","example":"https://www.linkedin.com/in/alex-morgan"},"profileImageUrl":{"type":"string","description":"Prospect profile image URL","format":"uri","example":"https://cdn.example.com/prospects/alex.jpg"},"status":{"type":"string","description":"Current prospect status","enum":["OUT","MEETING_BOOKED","NEW"],"nullable":true,"example":"NEW"},"outcome":{"type":"string","description":"Most recent call outcome for the prospect","nullable":true,"example":"Meeting booked"},"excludeFromCalling":{"type":"boolean","description":"Whether the prospect is currently excluded from calling","example":false},"excludeFromCallingUntil":{"type":"string","description":"Timestamp when the temporary calling exclusion expires","format":"date-time","example":"2026-09-10T00:00:00.000Z"}},"required":["id","status","outcome","excludeFromCalling"]},"PaginatedPublicListContactsDTO":{"type":"object","properties":{"listId":{"type":"string","description":"Dialer list containing the contacts","format":"uuid","example":"11111111-1111-4111-8111-111111111111"},"contacts":{"description":"Contacts in this page","type":"array","items":{"$ref":"#/components/schemas/PublicListContactDTO"}},"total":{"type":"number","description":"Total contacts in the list","minimum":0,"example":250},"page":{"type":"number","description":"Current 1-based page number","minimum":1,"default":1,"example":1},"pageSize":{"type":"number","description":"Requested number of contacts per page","enum":[50,100],"default":50,"example":50},"hasMore":{"type":"boolean","description":"Whether a later page exists","example":true}},"required":["listId","contacts","total","page","pageSize","hasMore"]},"CreatePublicDialerListRequestDTO":{"type":"object","properties":{"name":{"type":"string","description":"List display name","minLength":1,"maxLength":120,"example":"September outbound list"},"ownerUserId":{"type":"string","description":"Workspace user who should own the dialer list","format":"uuid","example":"22222222-2222-4222-8222-222222222222"}},"required":["name","ownerUserId"]},"CreatePublicDialerListResponseDTO":{"type":"object","properties":{"list":{"description":"Created list","allOf":[{"$ref":"#/components/schemas/PublicDialerListDTO"}]}},"required":["list"]},"PublicListContactInputDTO":{"type":"object","properties":{"firstName":{"type":"string","description":"Prospect first name","example":"Alex"},"lastName":{"type":"string","description":"Prospect last name","example":"Morgan"},"phoneNumber":{"type":"string","description":"Original prospect phone number","example":"+33639980002"},"email":{"type":"string","description":"Prospect email address","format":"email","example":"alex.morgan@example.com"},"companyName":{"type":"string","description":"Company display name","example":"Example GmbH"},"companyDomain":{"type":"string","description":"Company internet domain","example":"example.com"},"jobTitle":{"type":"string","description":"Prospect job title","example":"Head of Sales"},"linkedinUrl":{"type":"string","description":"Prospect LinkedIn profile URL","format":"uri","example":"https://www.linkedin.com/in/alex-morgan"},"customProperties":{"type":"object","description":"Source-neutral custom properties displayed in every prospect battle card and available as filters on this list","additionalProperties":{"type":"string"},"example":{"Favorite tool":"Apollo","Customer tier":"Enterprise"}}}},"UploadPublicListContactsRequestDTO":{"type":"object","properties":{"contacts":{"description":"Contacts to add to the list. Maximum 100 contacts per request.","type":"array","items":{"$ref":"#/components/schemas/PublicListContactInputDTO"}}},"required":["contacts"]},"UploadPublicListContactsResponseDTO":{"type":"object","properties":{"listId":{"type":"string","description":"List that received the contacts","format":"uuid","example":"11111111-1111-4111-8111-111111111111"},"acceptedContacts":{"type":"number","description":"Contacts accepted from the request after validation","minimum":0,"example":25},"totalProspects":{"type":"number","description":"Total prospects currently attached to the list after the upload","minimum":0,"example":125}},"required":["listId","acceptedContacts","totalProspects"]},"RemovePublicListContactResponseDTO":{"type":"object","properties":{"listId":{"type":"string","description":"List that had matching contacts removed","format":"uuid","example":"11111111-1111-4111-8111-111111111111"},"removedContacts":{"type":"number","description":"Matching contacts removed from the list","minimum":0,"example":1},"totalProspects":{"type":"number","description":"Total prospects currently attached to the list after the removal","minimum":0,"example":124}},"required":["listId","removedContacts","totalProspects"]},"PublicCrmClientImportInputDTO":{"type":"object","properties":{"companyName":{"type":"string","description":"Company display name","example":"Acme"},"companyDomain":{"type":"string","description":"Company internet domain","example":"acme.com"}},"required":["companyName","companyDomain"]},"PublicCompanyExclusionImportInputDTO":{"type":"object","properties":{"companyName":{"type":"string","description":"Company display name","example":"Blocked Co"},"companyDomain":{"type":"string","description":"Company internet domain","example":"blocked.com"}},"required":["companyName","companyDomain"]},"PublicContactExclusionImportInputDTO":{"type":"object","properties":{"firstName":{"type":"string","description":"Contact first name","example":"Jane"},"lastName":{"type":"string","description":"Contact last name","example":"Doe"},"email":{"type":"string","description":"Contact email address","format":"email","example":"jane@example.com"}},"required":["email"]},"PublicClientAndExclusionListsImportRequestDTO":{"type":"object","properties":{"crmClients":{"description":"CRM client company rows to append","type":"array","items":{"$ref":"#/components/schemas/PublicCrmClientImportInputDTO"}},"companyExclusions":{"description":"Company exclusion rows to append","type":"array","items":{"$ref":"#/components/schemas/PublicCompanyExclusionImportInputDTO"}},"contactExclusions":{"description":"Contact exclusion rows to append","type":"array","items":{"$ref":"#/components/schemas/PublicContactExclusionImportInputDTO"}}}},"PublicImportCountDTO":{"type":"object","properties":{"accepted":{"type":"number","description":"Valid input rows accepted after request-level de-duplication","minimum":0,"example":1},"created":{"type":"number","description":"Rows created or added by this import","minimum":0,"example":1},"skippedDuplicates":{"type":"number","description":"Rows skipped because they were duplicates in the request or workspace","minimum":0,"example":0},"total":{"type":"number","description":"Total rows currently stored after the import","minimum":0,"example":12}},"required":["accepted","created","skippedDuplicates","total"]},"PublicExclusionImportCountDTO":{"type":"object","properties":{"accepted":{"type":"number","description":"Valid input rows accepted after request-level de-duplication","minimum":0,"example":1},"added":{"type":"number","description":"Rows added by this import","minimum":0,"example":1},"skippedDuplicates":{"type":"number","description":"Rows skipped because they were duplicates in the request or workspace","minimum":0,"example":0},"total":{"type":"number","description":"Total rows currently stored after the import","minimum":0,"example":8},"listId":{"type":"string","description":"Synthetic workspace-local exclusion list id, or null when that section was omitted","format":"uuid","nullable":true,"example":"11111111-1111-4111-8111-111111111111"}},"required":["accepted","added","skippedDuplicates","total","listId"]},"PublicClientAndExclusionListsImportResponseDTO":{"type":"object","properties":{"crmClients":{"description":"CRM client import result","allOf":[{"$ref":"#/components/schemas/PublicImportCountDTO"}]},"companyExclusions":{"description":"Company exclusion import result","allOf":[{"$ref":"#/components/schemas/PublicExclusionImportCountDTO"}]},"contactExclusions":{"description":"Contact exclusion import result","allOf":[{"$ref":"#/components/schemas/PublicExclusionImportCountDTO"}]}},"required":["crmClients","companyExclusions","contactExclusions"]}}},"x-readme":{"explorer-enabled":true,"proxy-enabled":false,"metrics-enabled":false,"samples-languages":["shell","node","python"]}}