{"openapi":"3.1.0","info":{"title":"CX-Signals API","version":"1.1.0","description":"Read your workspace's accounts, signals, talking points and watch hits from your own systems. Read only. Webhooks (the webhooks section) tell your systems when something new comes in. Within v1 fields and values are only ever added: ignore a field you do not know, and treat a value you do not know as not set. Documentation: https://cx-signals.com/help/api","contact":{"name":"CX-Signals support","email":"support@cx-signals.com","url":"https://cx-signals.com/help/api"},"termsOfService":"https://cx-signals.com/api-terms","license":{"name":"Proprietary: use under the CX-Signals API Terms","url":"https://cx-signals.com/api-terms"}},"servers":[{"url":"https://api.cx-signals.com/v1"}],"security":[{"apiKey":[]}],"tags":[{"name":"Workspace","description":"Check your key"},{"name":"Accounts","description":"The accounts you track"},{"name":"Signals","description":"Developments about your accounts, with their sources"},{"name":"Talking points","description":"What to raise with your customers, and how"},{"name":"Watch hits","description":"\"Watch for\" items that happened"},{"name":"Runs","description":"When each account was analyzed"},{"name":"Deleted items","description":"What was removed, so you can remove it too"},{"name":"Webhooks","description":"The messages CX-Signals sends to your address when something happens"}],"paths":{"/workspace":{"get":{"operationId":"getWorkspace","tags":["Workspace"],"summary":"Which workspace and key this is","description":"Changes nothing. Use it to test a new key","responses":{"200":{"description":"The workspace and key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Workspace"}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/accounts":{"get":{"operationId":"listAccounts","tags":["Accounts"],"summary":"List accounts","description":"Every account in the workspace","parameters":[{"name":"limit","in":"query","required":false,"description":"Rows per page, 1 to 200. Default 100","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"changed_since","in":"query","required":false,"description":"Only rows changed after this time. ISO 8601 with a time zone. Pass the as_of of your last complete sync","schema":{"type":"string","format":"date-time"}},{"name":"account_id","in":"query","required":false,"description":"Only this account","schema":{"type":"string","format":"uuid"}},{"name":"cursor","in":"query","required":false,"description":"The next_cursor of the previous page. It carries that page's filters, so send only it (and limit)","schema":{"type":"string"}}],"responses":{"200":{"description":"One page","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor","as_of"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Account"}},"next_cursor":{"type":["string","null"],"description":"Pass it as cursor for the next page. Null on the last page"},"as_of":{"type":"string","description":"The end of this sync, five minutes behind the clock. Keep it from the last page and pass it as changed_since next time","format":"date-time"}}}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/accounts/{id}":{"get":{"operationId":"getAccount","tags":["Accounts"],"summary":"Get one account","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The item","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/Account"}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/signals":{"get":{"operationId":"listSignals","tags":["Signals"],"summary":"List signals","description":"Every signal of every account, archived ones included (archived: true)","parameters":[{"name":"limit","in":"query","required":false,"description":"Rows per page, 1 to 200. Default 100","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"changed_since","in":"query","required":false,"description":"Only rows changed after this time. ISO 8601 with a time zone. Pass the as_of of your last complete sync","schema":{"type":"string","format":"date-time"}},{"name":"account_id","in":"query","required":false,"description":"Only this account","schema":{"type":"string","format":"uuid"}},{"name":"cursor","in":"query","required":false,"description":"The next_cursor of the previous page. It carries that page's filters, so send only it (and limit)","schema":{"type":"string"}}],"responses":{"200":{"description":"One page","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor","as_of"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Signal"}},"next_cursor":{"type":["string","null"],"description":"Pass it as cursor for the next page. Null on the last page"},"as_of":{"type":"string","description":"The end of this sync, five minutes behind the clock. Keep it from the last page and pass it as changed_since next time","format":"date-time"}}}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/signals/{id}":{"get":{"operationId":"getSignal","tags":["Signals"],"summary":"Get one signal","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The item","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/Signal"}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/talking-points":{"get":{"operationId":"listTalkingPoints","tags":["Talking points"],"summary":"List talking points","description":"The talking points the app shows, archived ones included (archived: true)","parameters":[{"name":"limit","in":"query","required":false,"description":"Rows per page, 1 to 200. Default 100","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"changed_since","in":"query","required":false,"description":"Only rows changed after this time. ISO 8601 with a time zone. Pass the as_of of your last complete sync","schema":{"type":"string","format":"date-time"}},{"name":"account_id","in":"query","required":false,"description":"Only this account","schema":{"type":"string","format":"uuid"}},{"name":"cursor","in":"query","required":false,"description":"The next_cursor of the previous page. It carries that page's filters, so send only it (and limit)","schema":{"type":"string"}}],"responses":{"200":{"description":"One page","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor","as_of"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/TalkingPoint"}},"next_cursor":{"type":["string","null"],"description":"Pass it as cursor for the next page. Null on the last page"},"as_of":{"type":"string","description":"The end of this sync, five minutes behind the clock. Keep it from the last page and pass it as changed_since next time","format":"date-time"}}}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/talking-points/{id}":{"get":{"operationId":"getTalkingPoint","tags":["Talking points"],"summary":"Get one talking point","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"The item","content":{"application/json":{"schema":{"type":"object","required":["data"],"properties":{"data":{"$ref":"#/components/schemas/TalkingPoint"}}}}}},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"404":{"$ref":"#/components/responses/E404"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/watch-hits":{"get":{"operationId":"listWatchHits","tags":["Watch hits"],"summary":"List watch hits","description":"Watch hits of the talking points the API lists","parameters":[{"name":"limit","in":"query","required":false,"description":"Rows per page, 1 to 200. Default 100","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"changed_since","in":"query","required":false,"description":"Only rows changed after this time. ISO 8601 with a time zone. Pass the as_of of your last complete sync","schema":{"type":"string","format":"date-time"}},{"name":"account_id","in":"query","required":false,"description":"Only this account","schema":{"type":"string","format":"uuid"}},{"name":"cursor","in":"query","required":false,"description":"The next_cursor of the previous page. It carries that page's filters, so send only it (and limit)","schema":{"type":"string"}}],"responses":{"200":{"description":"One page","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor","as_of"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WatchHit"}},"next_cursor":{"type":["string","null"],"description":"Pass it as cursor for the next page. Null on the last page"},"as_of":{"type":"string","description":"The end of this sync, five minutes behind the clock. Keep it from the last page and pass it as changed_since next time","format":"date-time"}}}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/runs":{"get":{"operationId":"listRuns","tags":["Runs"],"summary":"List runs","description":"Runs of the workspace's accounts. Never what a run was billed","parameters":[{"name":"limit","in":"query","required":false,"description":"Rows per page, 1 to 200. Default 100","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"changed_since","in":"query","required":false,"description":"Only rows changed after this time. ISO 8601 with a time zone. Pass the as_of of your last complete sync","schema":{"type":"string","format":"date-time"}},{"name":"account_id","in":"query","required":false,"description":"Only this account","schema":{"type":"string","format":"uuid"}},{"name":"cursor","in":"query","required":false,"description":"The next_cursor of the previous page. It carries that page's filters, so send only it (and limit)","schema":{"type":"string"}}],"responses":{"200":{"description":"One page","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor","as_of"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Run"}},"next_cursor":{"type":["string","null"],"description":"Pass it as cursor for the next page. Null on the last page"},"as_of":{"type":"string","description":"The end of this sync, five minutes behind the clock. Keep it from the last page and pass it as changed_since next time","format":"date-time"}}}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}},"/deleted":{"get":{"operationId":"listDeletedItems","tags":["Deleted items"],"summary":"List deleted items","description":"What was removed. Entries are kept 90 days: a system that syncs less often should do a full sync instead","parameters":[{"name":"limit","in":"query","required":false,"description":"Rows per page, 1 to 200. Default 100","schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},{"name":"changed_since","in":"query","required":false,"description":"Only rows changed after this time. ISO 8601 with a time zone. Pass the as_of of your last complete sync","schema":{"type":"string","format":"date-time"}},{"name":"account_id","in":"query","required":false,"description":"Only this account","schema":{"type":"string","format":"uuid"}},{"name":"cursor","in":"query","required":false,"description":"The next_cursor of the previous page. It carries that page's filters, so send only it (and limit)","schema":{"type":"string"}}],"responses":{"200":{"description":"One page","content":{"application/json":{"schema":{"type":"object","required":["data","next_cursor","as_of"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/DeletedItem"}},"next_cursor":{"type":["string","null"],"description":"Pass it as cursor for the next page. Null on the last page"},"as_of":{"type":"string","description":"The end of this sync, five minutes behind the clock. Keep it from the last page and pass it as changed_since next time","format":"date-time"}}}}}},"400":{"$ref":"#/components/responses/E400"},"401":{"$ref":"#/components/responses/E401"},"403":{"$ref":"#/components/responses/E403"},"429":{"$ref":"#/components/responses/E429"},"503":{"$ref":"#/components/responses/E503"}}}}},"webhooks":{"talking_point.created":{"post":{"operationId":"onTalkingPointCreated","tags":["Webhooks"],"summary":"talking_point.created","description":"A new talking point, sent when the run that found it has finished. Only talking points the API lists (the ones the app shows)","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"The message id. The same on every retry: use it to ignore a message you already have","schema":{"type":"string","format":"uuid"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"When this attempt was signed, in seconds since 1970. Refuse a message more than five minutes old","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"v1, then the base64 HMAC-SHA256 of \"<webhook-id>.<webhook-timestamp>.<body>\", keyed with your address's secret (Standard Webhooks)","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TalkingPointCreatedMessage"}}}},"responses":{"2XX":{"description":"Received. Answer within 10 seconds. Any other answer, a redirect, or no answer is tried again later"}}}},"signal.created":{"post":{"operationId":"onSignalCreated","tags":["Webhooks"],"summary":"signal.created","description":"A signal found for the first time, sent when the run that found it has finished. A signal that changed is not sent again: read changes with changed_since","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"The message id. The same on every retry: use it to ignore a message you already have","schema":{"type":"string","format":"uuid"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"When this attempt was signed, in seconds since 1970. Refuse a message more than five minutes old","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"v1, then the base64 HMAC-SHA256 of \"<webhook-id>.<webhook-timestamp>.<body>\", keyed with your address's secret (Standard Webhooks)","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignalCreatedMessage"}}}},"responses":{"2XX":{"description":"Received. Answer within 10 seconds. Any other answer, a redirect, or no answer is tried again later"}}}},"watch_hit.created":{"post":{"operationId":"onWatchHitCreated","tags":["Webhooks"],"summary":"watch_hit.created","description":"A \"watch for\" item that happened, of a talking point the API lists, sent when its run has finished","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"The message id. The same on every retry: use it to ignore a message you already have","schema":{"type":"string","format":"uuid"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"When this attempt was signed, in seconds since 1970. Refuse a message more than five minutes old","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"v1, then the base64 HMAC-SHA256 of \"<webhook-id>.<webhook-timestamp>.<body>\", keyed with your address's secret (Standard Webhooks)","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchHitCreatedMessage"}}}},"responses":{"2XX":{"description":"Received. Answer within 10 seconds. Any other answer, a redirect, or no answer is tried again later"}}}},"run.finished":{"post":{"operationId":"onRunFinished","tags":["Webhooks"],"summary":"run.finished","description":"A run ended, whatever the outcome: completed, nothing-new, partial or failed (status). Its counts say what it found","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"The message id. The same on every retry: use it to ignore a message you already have","schema":{"type":"string","format":"uuid"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"When this attempt was signed, in seconds since 1970. Refuse a message more than five minutes old","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"v1, then the base64 HMAC-SHA256 of \"<webhook-id>.<webhook-timestamp>.<body>\", keyed with your address's secret (Standard Webhooks)","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunFinishedMessage"}}}},"responses":{"2XX":{"description":"Received. Answer within 10 seconds. Any other answer, a redirect, or no answer is tried again later"}}}},"item.deleted":{"post":{"operationId":"onItemDeleted","tags":["Webhooks"],"summary":"item.deleted","description":"Something was removed. Remove it from your system too, within 30 days (API Terms). A removed account comes once and stands for everything under it","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"The message id. The same on every retry: use it to ignore a message you already have","schema":{"type":"string","format":"uuid"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"When this attempt was signed, in seconds since 1970. Refuse a message more than five minutes old","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"v1, then the base64 HMAC-SHA256 of \"<webhook-id>.<webhook-timestamp>.<body>\", keyed with your address's secret (Standard Webhooks)","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemDeletedMessage"}}}},"responses":{"2XX":{"description":"Received. Answer within 10 seconds. Any other answer, a redirect, or no answer is tried again later"}}}},"webhook.test":{"post":{"operationId":"onWebhookTest","tags":["Webhooks"],"summary":"webhook.test","description":"Sent only when an admin chooses Send test in Settings. It carries no data from the workspace","security":[],"parameters":[{"name":"webhook-id","in":"header","required":true,"description":"The message id. The same on every retry: use it to ignore a message you already have","schema":{"type":"string","format":"uuid"}},{"name":"webhook-timestamp","in":"header","required":true,"description":"When this attempt was signed, in seconds since 1970. Refuse a message more than five minutes old","schema":{"type":"string"}},{"name":"webhook-signature","in":"header","required":true,"description":"v1, then the base64 HMAC-SHA256 of \"<webhook-id>.<webhook-timestamp>.<body>\", keyed with your address's secret (Standard Webhooks)","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTestMessage"}}}},"responses":{"2XX":{"description":"Received. Answer within 10 seconds. Any other answer, a redirect, or no answer is tried again later"}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"An API key from Settings, Integrations: send \"Authorization: Bearer cxs_...\""}},"schemas":{"Account":{"type":"object","description":"An account the workspace tracks","required":["id","name","domains","cadence","last_run_at","created_at","updated_at"],"properties":{"id":{"type":"string","description":"The account id","format":"uuid"},"name":{"type":"string","description":"The account name"},"domains":{"type":"array","description":"The company websites used to recognize it","items":{"type":"string"}},"cadence":{"type":["string","null"],"description":"How often it runs: Daily, Weekly, Monthly or Manual"},"last_run_at":{"type":["string","null"],"description":"When it last ran. Null before the first run","format":"date-time"},"created_at":{"type":"string","description":"When it was added","format":"date-time"},"updated_at":{"type":"string","description":"When anything about it last changed","format":"date-time"}}},"Source":{"type":"object","description":"An article behind a signal","required":["name","url","found_at"],"properties":{"name":{"type":["string","null"],"description":"The publication or site"},"url":{"type":["string","null"],"description":"The link to the article"},"found_at":{"type":["string","null"],"description":"When CX-Signals found it","format":"date-time"}}},"Signal":{"type":"object","description":"A development about an account: one story, built from one or more sources","required":["id","account_id","title","type","scope","competitor","label","label_reason","direction","strength","confidence","strength_version","first_seen_at","last_source_at","archived","archived_at","sources","updated_at"],"properties":{"id":{"type":"string","description":"The signal id","format":"uuid"},"account_id":{"type":"string","description":"The account it is about","format":"uuid"},"title":{"type":["string","null"],"description":"The headline, as the app shows it. Text from the web: show it as plain text"},"type":{"type":"object","description":"The kind of development, e.g. { \"key\": \"m_and_a\", \"name\": \"M&A\" }. New kinds can appear","required":["key","name"],"properties":{"key":{"type":"string","description":"A fixed key your code can rely on"},"name":{"type":"string","description":"The name the app shows"}}},"scope":{"type":"string","description":"What the signal is about: the account itself, one of its tracked competitors, or its industry","enum":["company","competitor","industry"]},"competitor":{"type":["object","null"],"description":"For a competitor signal: which tracked competitor. Null otherwise, or when it cannot be told","required":["name"],"properties":{"name":{"type":"string","description":"The competitor name"}}},"label":{"type":["string","null"],"description":"churn_risk or opportunity, for what you sell (set in Settings, Product context). Null when neither","enum":["churn_risk","opportunity",null]},"label_reason":{"type":["string","null"],"description":"One sentence on why it is a churn risk or an opportunity. Null without a label"},"direction":{"type":["string","null"],"description":"Whether the development is good or bad news for the account","enum":["positive","negative","neutral",null]},"strength":{"type":["integer","null"],"description":"How much it matters, 0 to 100. Null before it is scored"},"confidence":{"type":["string","null"],"description":"How sure the reading is","enum":["high","medium","low",null]},"strength_version":{"type":["integer","null"],"description":"Which version of the scoring made the strength. Strengths of different versions are not comparable"},"first_seen_at":{"type":"string","description":"When it was first seen","format":"date-time"},"last_source_at":{"type":["string","null"],"description":"When its latest source was added, i.e. when the story last moved","format":"date-time"},"archived":{"type":"boolean","description":"Archived in the app (hidden from the default views, not deleted)"},"archived_at":{"type":["string","null"],"description":"When it was archived. Null when it is not","format":"date-time"},"sources":{"type":"array","description":"Its sources, oldest first","items":{"$ref":"#/components/schemas/Source"}},"updated_at":{"type":"string","description":"When anything about it last changed","format":"date-time"}}},"Guidance":{"type":"object","description":"How to raise the talking point","required":["objective","questions_to_confirm","watch_for"],"properties":{"objective":{"type":["string","null"],"description":"What the conversation should achieve"},"questions_to_confirm":{"type":"array","description":"Questions to ask the customer","items":{"type":"string"}},"watch_for":{"type":"array","description":"Developments to watch for next. When one happens, it appears in /v1/watch-hits","items":{"type":"string"}}}},"TalkingPointSignal":{"type":"object","description":"A signal a talking point was built from","required":["id","title","type","scope","label"],"properties":{"id":{"type":"string","description":"The signal id (see /v1/signals)","format":"uuid"},"title":{"type":["string","null"],"description":"Its headline. Text from the web: show it as plain text"},"type":{"type":"object","description":"The kind of development, e.g. { \"key\": \"m_and_a\", \"name\": \"M&A\" }. New kinds can appear","required":["key","name"],"properties":{"key":{"type":"string","description":"A fixed key your code can rely on"},"name":{"type":"string","description":"The name the app shows"}}},"scope":{"type":"string","description":"What the signal is about: the account itself, one of its tracked competitors, or its industry","enum":["company","competitor","industry"]},"label":{"type":["string","null"],"description":"churn_risk or opportunity, for what you sell (set in Settings, Product context). Null when neither","enum":["churn_risk","opportunity",null]}}},"TalkingPoint":{"type":"object","description":"Something to raise with the customer, written from one or more signals","required":["id","account_id","text","context","guidance","attention","label","strength","confidence","signals","archived","archived_at","created_at","updated_at"],"properties":{"id":{"type":"string","description":"The talking point id","format":"uuid"},"account_id":{"type":"string","description":"The account it is for","format":"uuid"},"text":{"type":["string","null"],"description":"The talking point"},"context":{"type":["string","null"],"description":"Why it matters (shown as Context in the app)"},"guidance":{"$ref":"#/components/schemas/Guidance"},"attention":{"type":["object","null"],"description":"How soon to act. Null when not set","required":["key","name"],"properties":{"key":{"type":"string","description":"A fixed key your code can rely on","enum":["act_now","act_within_weeks","awareness"]},"name":{"type":"string","description":"The name the app shows"}}},"label":{"type":["string","null"],"description":"churn_risk or opportunity, from the signals behind it (churn risk first, as the app shows it)","enum":["churn_risk","opportunity",null]},"strength":{"type":["integer","null"],"description":"How much it matters, 0 to 100"},"confidence":{"type":["string","null"],"description":"How sure the reading is","enum":["high","medium","low",null]},"signals":{"type":"array","description":"The signals behind it, in its own order. When one of them changes its title, type, scope or label, or is deleted, the talking point counts as changed too","items":{"$ref":"#/components/schemas/TalkingPointSignal"}},"archived":{"type":"boolean","description":"Archived in the app (hidden from the default views, not deleted)"},"archived_at":{"type":["string","null"],"description":"When it was archived. Null when it is not","format":"date-time"},"created_at":{"type":"string","description":"When it was written","format":"date-time"},"updated_at":{"type":"string","description":"When anything about it last changed","format":"date-time"}}},"WatchHit":{"type":"object","description":"A \"watch for\" item of a talking point that happened","required":["id","account_id","talking_point_id","watched_for","explanation","signal_id","created_at","updated_at"],"properties":{"id":{"type":"string","description":"The watch hit id","format":"uuid"},"account_id":{"type":"string","description":"The account","format":"uuid"},"talking_point_id":{"type":"string","description":"The talking point whose watch_for list named it","format":"uuid"},"watched_for":{"type":["string","null"],"description":"The watch_for item, as the talking point wrote it"},"explanation":{"type":["string","null"],"description":"How the new signal shows it happened"},"signal_id":{"type":"string","description":"The signal that showed it happened","format":"uuid"},"created_at":{"type":"string","description":"When it was found","format":"date-time"},"updated_at":{"type":"string","description":"Its sync date: changed_since compares with it, as in every list","format":"date-time"}}},"RunCounts":{"type":"object","description":"What a run found","required":["sources","signals","new_signals","updated_signals"],"properties":{"sources":{"type":["integer","null"],"description":"Sources found"},"signals":{"type":["integer","null"],"description":"Signals it touched"},"new_signals":{"type":["integer","null"],"description":"New signals"},"updated_signals":{"type":["integer","null"],"description":"Existing signals that got a new source"}}},"Run":{"type":"object","description":"One analysis of one account","required":["id","account_id","status","started_at","finished_at","counts","updated_at"],"properties":{"id":{"type":"string","description":"The run id","format":"uuid"},"account_id":{"type":"string","description":"The account","format":"uuid"},"status":{"type":"string","description":"running, completed, nothing-new (it ran and found nothing new), partial (it finished, but part of it failed) or failed"},"started_at":{"type":"string","description":"When it started","format":"date-time"},"finished_at":{"type":["string","null"],"description":"When it finished. Null while running","format":"date-time"},"counts":{"$ref":"#/components/schemas/RunCounts"},"updated_at":{"type":"string","description":"When anything about it last changed","format":"date-time"}}},"DeletedItem":{"type":"object","description":"Something removed from the workspace. Remove it from your system too. It can name an item you never received (one the API did not show, such as a weak talking point): ignore ids you do not have","required":["type","id","account_id","deleted_at"],"properties":{"type":{"type":"string","description":"What was removed. A deleted account means everything under it is gone too, and is listed once","enum":["account","signal","talking_point","watch_hit"]},"id":{"type":"string","description":"The id it had","format":"uuid"},"account_id":{"type":["string","null"],"description":"The account it was under (for an account, its own id)","format":"uuid"},"deleted_at":{"type":"string","description":"When it was removed","format":"date-time"}}},"Workspace":{"type":"object","description":"The workspace and key a request reads with","required":["workspace","api_key"],"properties":{"workspace":{"type":"object","description":"The workspace","required":["id","name"],"properties":{"id":{"type":"string","description":"The workspace id","format":"uuid"},"name":{"type":"string","description":"The workspace name"}}},"api_key":{"type":"object","description":"The key","required":["name","prefix"],"properties":{"name":{"type":"string","description":"The name an admin gave it"},"prefix":{"type":"string","description":"Its first characters"}}}}},"Error":{"type":"object","description":"Every error has this shape","required":["error"],"properties":{"error":{"type":"object","description":"What went wrong","required":["code","message"],"properties":{"code":{"type":"string","description":"A fixed code your code can rely on (see Errors and rate limits)"},"message":{"type":"string","description":"A sentence for a person. It may change"}}}}},"WebhookTest":{"type":"object","description":"The test message","required":["message"],"properties":{"message":{"type":"string","description":"A sentence saying this is a test"}}},"TalkingPointCreatedMessage":{"type":"object","description":"The body of a talking_point.created message","required":["type","timestamp","data"],"properties":{"type":{"type":"string","description":"The event","enum":["talking_point.created"]},"timestamp":{"type":"string","description":"When it happened","format":"date-time"},"data":{"$ref":"#/components/schemas/TalkingPoint"}}},"SignalCreatedMessage":{"type":"object","description":"The body of a signal.created message","required":["type","timestamp","data"],"properties":{"type":{"type":"string","description":"The event","enum":["signal.created"]},"timestamp":{"type":"string","description":"When it happened","format":"date-time"},"data":{"$ref":"#/components/schemas/Signal"}}},"WatchHitCreatedMessage":{"type":"object","description":"The body of a watch_hit.created message","required":["type","timestamp","data"],"properties":{"type":{"type":"string","description":"The event","enum":["watch_hit.created"]},"timestamp":{"type":"string","description":"When it happened","format":"date-time"},"data":{"$ref":"#/components/schemas/WatchHit"}}},"RunFinishedMessage":{"type":"object","description":"The body of a run.finished message","required":["type","timestamp","data"],"properties":{"type":{"type":"string","description":"The event","enum":["run.finished"]},"timestamp":{"type":"string","description":"When it happened","format":"date-time"},"data":{"$ref":"#/components/schemas/Run"}}},"ItemDeletedMessage":{"type":"object","description":"The body of a item.deleted message","required":["type","timestamp","data"],"properties":{"type":{"type":"string","description":"The event","enum":["item.deleted"]},"timestamp":{"type":"string","description":"When it happened","format":"date-time"},"data":{"$ref":"#/components/schemas/DeletedItem"}}},"WebhookTestMessage":{"type":"object","description":"The body of a webhook.test message","required":["type","timestamp","data"],"properties":{"type":{"type":"string","description":"The event","enum":["webhook.test"]},"timestamp":{"type":"string","description":"When it happened","format":"date-time"},"data":{"$ref":"#/components/schemas/WebhookTest"}}}},"responses":{"E400":{"description":"invalid_request: a parameter is not valid. The message says which","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E401":{"description":"missing_key or invalid_key","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E403":{"description":"api_disabled: a workspace admin, or CX-Signals, has switched the API off for the workspace. The message says which","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E404":{"description":"not_found: no such item in this workspace, or no such endpoint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E429":{"description":"rate_limited (120 requests a minute per key, 240 for all of a workspace's keys together) or too_many_failed_requests (60 requests with a missing or wrong key per 15 minutes per address). Retry after the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"E503":{"description":"unavailable: try again shortly","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}