{"openapi":"3.0.3","info":{"title":"Contact Form Outreach API","version":"1.0.0","description":"Send your message to companies through the contact form on their website. Every call needs an API key, sent as Authorization: Bearer <key>. To act for one of your own customers, name the customer in the X-Customer-Ref header (1 to 128 characters: letters, digits and . _ : @ -); each customer's campaigns, credit and settings are kept apart from the others. Documentation: https://contactformoutreach.com/developers"},"servers":[{"url":"https://api.contactformoutreach.com"}],"security":[{"bearerAuth":[]}],"paths":{"/v1/api-calls":{"get":{"description":"Needs a key with the read scope. Answers one page at a time. The answer carries page with limit, offset and total. Kept for 90 days. reason is a short code; quote request_id to support. A call sent with X-Customer-Ref is refused: the log belongs to the whole organisation.","operationId":"getV1Api-calls","parameters":[{"in":"query","name":"ok","required":false,"schema":{"enum":["true","false"],"type":"string"}},{"in":"query","name":"key_id","required":false,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"Left out, it is 200.","in":"query","name":"limit","required":false,"schema":{"default":200,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Left out, it is 0.","in":"query","name":"offset","required":false,"schema":{"default":0,"maximum":1000000,"minimum":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiCallPage"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The calls your keys made, newest first","tags":["Call log"]}},"/v1/api-keys":{"get":{"description":"Needs a key with the read scope. Answers one page at a time. The answer carries page with limit, offset and total. Needs an X-Customer-Ref header naming the customer. Newest first unless sort says otherwise; revoked and expired keys stay listed. The secret is never shown again after the key is made. Ties break by the newest made first and then by id, so pages never repeat or skip a key. A % or _ in search is a character to find, not a wildcard.","operationId":"getV1Api-keys","parameters":[{"description":"Left out, it is 50.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Left out, it is 0.","in":"query","name":"offset","required":false,"schema":{"default":0,"maximum":1000000,"minimum":0,"type":"integer"}},{"description":"Part of the key's name or of its prefix, capitals ignored.","in":"query","name":"search","required":false,"schema":{"maxLength":200,"type":"string"}},{"description":"Created puts the newest made first, name A to Z, last_used the most recently used first, expires the key that stops soonest first.","in":"query","name":"sort","required":false,"schema":{"enum":["created","name","last_used","expires"],"type":"string"}},{"description":"Turns the chosen order round. Left out, created and last_used run newest first, name A to Z, expires soonest first. A key never used, or one that never expires, comes last either way.","in":"query","name":"direction","required":false,"schema":{"enum":["asc","desc"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerApiKeyPage"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"One customer's API keys","tags":["Customer keys"]},"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. Needs an X-Customer-Ref header naming the customer. Read is always added. The secret is in this answer only. A customer may hold 20 live keys. A key that can sign off needs signoff_accepted: true, the customer's confirmation of the sign-off statement.","operationId":"postV1Api-keys","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"expires_at":{"description":"Left out, the key expires in 90 days. At most one year away.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"name":{"description":"What the key is called on your screens.","maxLength":100,"type":"string"},"scopes":{"description":"Any of read, write, signoff, send, webhooks, registry:read, registry:website, and none the calling key lacks.","items":{"maxLength":20,"type":"string"},"maxItems":7,"minItems":1,"type":"array"},"signoff_accepted":{"description":"Send true once the customer has confirmed the sign-off statement; a key with signoff needs it.","type":"boolean"}},"required":["name","scopes"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerApiKeyMade"}}},"description":"Made. The answer names it.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Make an API key for one customer","tags":["Customer keys"]}},"/v1/api-keys/{id}/revoke":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once.","operationId":"postV1Api-keysByIdRevoke","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"reason":{"description":"Why, for your own records.","maxLength":300,"type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerApiKeyRevoked"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Revoke a customer key","tags":["Customer keys"]}},"/v1/api-keys/{id}/rotate":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. A new key with the same name and scopes; the old one stops working at once. The new secret is in this answer only.","operationId":"postV1Api-keysByIdRotate","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"signoff_accepted":{"description":"Needed again when the key can sign off.","type":"boolean"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerApiKeyRotated"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Replace a customer key's secret","tags":["Customer keys"]}},"/v1/board":{"get":{"description":"Needs a key with the read scope. Answers one page at a time. The answer carries page with limit, offset and total. One row per company site over all your campaigns. The counts field says how many companies are in each status over the whole board, not only this page. With an X-Customer-Ref, only that customer's campaigns count. The latest activity first unless sort says otherwise. Ties break by the company site, so pages never repeat or skip a company. A % or _ in search is a character to find, not a wildcard. A company on several campaigns is looked after by whoever was set on it last. Every number of GET /v1/team is the total of this list with a filter: companies with owner, replies_open with owner and reply_waiting=true, follow_ups_due with owner and due_before set to that answer's end_of_today; the unassigned row with owner=none. campaign_id and country narrow the whole board, so counts follow them; the other filters narrow total and the pages only. Each row's country is the register country of the name the company was found from, on the list its campaign came from, else the country of its earliest campaign, else null.","operationId":"getV1Board","parameters":[{"in":"query","name":"state","required":false,"schema":{"enum":["new","contacted","follow_up_due","replied","auto_reply","bounced","objected","paused","excluded"],"type":"string"}},{"description":"Only the companies looked after by this member of your staff. The same as owner with a user id; send one of the two.","in":"query","name":"owner_user_id","required":false,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A user_id from GET /team: only what belongs to the companies that person looks after. The word none: only the companies nobody looks after.","in":"query","name":"owner","required":false,"schema":{"maxLength":36,"type":"string"}},{"description":"True: only the companies that replied and got no note since. False: only the others.","in":"query","name":"reply_waiting","required":false,"schema":{"enum":["true","false"],"type":"string"}},{"description":"Only the companies whose next follow-up is due at or before this time. Send end_of_today from GET /team for the follow-ups due today.","in":"query","name":"due_before","required":false,"schema":{"description":"A time with its zone, like 2026-09-17T10:30:00Z or 2026-09-17T12:30:00+02:00.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"}},{"description":"Part of a company site.","in":"query","name":"search","required":false,"schema":{"maxLength":200,"type":"string"}},{"description":"Only the companies on any of these campaigns: ids separated by commas or with campaign_id repeated. Each company row stays as it is: its status is still worked out over all its campaigns. A campaign that is not one of yours, or was deleted, is 404 (CAMPAIGN_NOT_FOUND).","in":"query","name":"campaign_id","required":false,"schema":{"description":"One or more ids, separated by commas or with the key repeated.","type":"string"}},{"description":"Only the companies in any of these countries: two-letter codes, like DE, separated by commas or with country repeated, as each row says it in country. The word none: a company whose country is not known.","in":"query","name":"country","required":false,"schema":{"description":"One or more two letter country codes, like DE, or the word none, separated by commas or with the key repeated.","type":"string"}},{"description":"Left out, it is 200.","in":"query","name":"limit","required":false,"schema":{"default":200,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Left out, it is 0.","in":"query","name":"offset","required":false,"schema":{"default":0,"maximum":1000000,"minimum":0,"type":"integer"}},{"description":"Activity puts the latest first: the last reply, or else the next follow-up due, or else the last send. Domain is the company site A to Z, status the order of the work (new, contacted, follow_up_due, replied, auto_reply, bounced, objected, paused, excluded), last_sent the last send first, replies the most replies first, owner the member of staff A to Z.","in":"query","name":"sort","required":false,"schema":{"enum":["activity","domain","status","last_sent","replies","owner"],"type":"string"}},{"description":"Turns the chosen order round. Left out, activity, last_sent and replies run latest or most first, domain, status and owner A to Z or new first. A company with no activity, no send or no owner comes last either way.","in":"query","name":"direction","required":false,"schema":{"enum":["asc","desc"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Board"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Every company across your campaigns, with one status each","tags":["Board"]}},"/v1/campaigns":{"get":{"description":"Needs a key with the read scope. Answers one page at a time. The answer carries page with limit, offset and total. newest is the last change to the campaign first: its state, its sign-off, its settings, and each delivery counted while it sends. created is the newest created first. status follows the work: discovered (companies found, waiting for the sign-off), draft (no search started yet), attested (signed, waiting to send), running, paused, done, cancelled. replied_count is each campaign's replied_count, the mail matched to it as a reply; ties break by the newest created first. results is each campaign's delivered_count; ties break by the newest created first. Every filter narrows the total and the pages alike. Other ties break by the last change first, and every order then by id, so pages never repeat or skip a campaign. search looks in the name and the keywords, capitals ignored; a % or _ in it is a character to find, not a wildcard.","operationId":"getV1Campaigns","parameters":[{"description":"Left out, it is 200.","in":"query","name":"limit","required":false,"schema":{"default":200,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Left out, it is 0.","in":"query","name":"offset","required":false,"schema":{"default":0,"maximum":1000000,"minimum":0,"type":"integer"}},{"description":"Which campaigns: all, or one group of states. draft lists only the drafts: campaigns saved before their search started, which your screens can open again. Start the search on the draft itself with POST /campaigns/{id}/jobs and kind discover; a draft made from a list (POST /lists/{id}/campaigns) holds only its solve budget.","in":"query","name":"state","required":false,"schema":{"enum":["all","review","sending","finished","stopped","draft"],"type":"string"}},{"in":"query","name":"search","required":false,"schema":{"maxLength":200,"type":"string"}},{"description":"Only the campaigns that use this message, as their message or as one of their versions. The total is the message's used_by_campaigns.","in":"query","name":"template_id","required":false,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"Only the campaigns in any of these countries: two-letter codes, like DE, separated by commas or with country repeated. A campaign's country is the one it keeps to (only_country), else the one it runs in; each campaign says it in country. The word none: a campaign whose country is not known.","in":"query","name":"country","required":false,"schema":{"description":"One or more two letter country codes, like DE, or the word none, separated by commas or with the key repeated.","type":"string"}},{"description":"Only the campaigns made by any of these members: user ids from GET /team, separated by commas or with owner repeated; each campaign says who made it in created_by. The word none: a campaign with no maker recorded. An id that is no member now finds nothing rather than being refused, so a person who left can still be looked up.","in":"query","name":"owner","required":false,"schema":{"description":"One or more ids, or the word none, separated by commas or with the key repeated.","type":"string"}},{"description":"Newest puts the last change first, created the newest created first, name A to Z, status the order of the work: discovered, draft, attested, running, paused, done, cancelled, replied_count the most replies first, results the most delivered enquiries (delivered_count) first.","in":"query","name":"sort","required":false,"schema":{"enum":["newest","created","name","status","replied_count","results"],"type":"string"}},{"description":"Turns the chosen order round. Left out, newest and created run newest first, name A to Z, status discovered first, replied_count most replies first, results most delivered first.","in":"query","name":"direction","required":false,"schema":{"enum":["asc","desc"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignPage"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"One page of the organisation's campaigns","tags":["Campaigns"]},"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/campaigns/{id}.","operationId":"postV1Campaigns","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"activity":{"description":"PKD codes of the companies wanted, like 25.62 or 25. With a trade the campaign is filled from the company register first, free, and searches only for what is still missing. Poland only.","items":{"maxLength":8,"type":"string"},"maxItems":20,"type":"array"},"ai_writer":{"default":false,"description":"Send true to have the AI writer write each company its own subject, body and short_body from what its website says, in the campaign's language, just before its form is sent. The sender's details, every link and the closing line on how to stop being contacted are never changed, and when no version can be written the message goes as written. Preview what it writes before you sign off with POST /campaigns/{id}/ai-versions. Left out, it is false.","type":"boolean"},"country":{"description":"A two letter country code, like DE.","maxLength":2,"minLength":2,"type":"string"},"delivery_target":{"maximum":10000,"minimum":1,"type":"integer"},"discovery_target":{"maximum":5000,"minimum":1,"type":"integer"},"discovery_target_kind":{"enum":["websites","with_form"],"type":"string"},"exclude_known":{"description":"Send true to leave out companies already on any of your lists or campaigns, false to keep them. Absent means the default of the day.","type":"boolean"},"harvest_contacts":{"default":false,"description":"Left out, it is false.","type":"boolean"},"harvest_terms_accepted":{"default":false,"description":"Left out, it is false.","type":"boolean"},"keywords":{"items":{"maxLength":100,"type":"string"},"maxItems":50,"minItems":1,"type":"array"},"language":{"description":"A two letter language code, like de.","maxLength":2,"minLength":2,"type":"string"},"location_code":{"maximum":2147483647,"minimum":1,"type":"integer"},"location_name":{"maxLength":200,"type":"string"},"name":{"maxLength":200,"type":"string"},"order_shape":{"description":"Send flat for one price per sent form, with no captcha budget to set. Leave it out otherwise.","enum":["flat"],"type":"string"},"rate_per_hour":{"maximum":500,"minimum":1,"type":"integer"},"send_enquiries":{"type":"boolean"},"skip_contacted":{"type":"boolean"},"solve_budget_cents":{"maximum":100000,"minimum":0,"type":"integer"},"template_group":{"description":"Every message saved under this group, in the order they were saved, in place of template_ids. The list is taken when you send this and kept: a message added to the group later does not join the campaign. At most twenty messages. Read while GET /offered says twenty_messages.","maxLength":100,"type":"string"},"template_id":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"template_ids":{"description":"One to five messages from GET /templates (one to twenty where GET /offered says twenty_messages), sent in turns: each company in the order the campaign sends gets the next one (A, B, C, A, B, C...) and keeps it on a retry; follow-ups keep their step's own message. Results per message at GET /campaigns/{id}/versions. Send this or template_id, not both; one id here is the same as template_id.","items":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"maxItems":20,"minItems":1,"type":"array"}},"required":["name","keywords","send_enquiries"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignMade"}}},"description":"Made. Location points at where it is read.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"Location":{"description":"Where what was made is read.","schema":{"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Start a campaign","tags":["Campaigns"]}},"/v1/campaigns/{id}":{"delete":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. Only a draft whose search has not started. It is gone from every list and read and frees its place under the draft limit. A campaign that has started, or has companies on it, is refused with 409: stop it instead.","operationId":"deleteV1CampaignsById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignDiscarded"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Throw away a draft campaign","tags":["Campaigns"]},"get":{"description":"Needs a key with the read scope.","operationId":"getV1CampaignsById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignDetail"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"One campaign","tags":["Campaigns"]},"patch":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. Only the fields sent are changed. A field left out stays as it is. Every field is optional; a field left out or null is not changed. GET /campaigns/{id}/changes says, for the campaign as it stands, which fields can change now and the words a change would be refused with.","operationId":"patchV1CampaignsById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"activity":{"description":"PKD codes of the companies wanted, like 25.62 or 25. Replaces the codes; an empty list clears them. Changes nothing already on the campaign.","items":{"maxLength":8,"type":"string"},"maxItems":20,"type":"array"},"ai_writer":{"description":"Send true to turn the AI writer on and false to turn it off. Refused with 409 while the campaign is sending. A change drops every version not sent yet; with the writer on, each company's version is written again before its send.","type":"boolean"},"clear_delivery_target":{"type":"boolean"},"country":{"description":"A country we run campaigns in. Only before the search starts, and not while towns are set (remove them first). The language follows the new country unless language is sent too.","maxLength":2,"minLength":2,"type":"string"},"delivery_target":{"maximum":10000,"minimum":1,"type":"integer"},"discovery_target":{"maximum":5000,"minimum":1,"type":"integer"},"discovery_target_kind":{"enum":["websites","with_form"],"type":"string"},"draft_body":{"description":"The text of the message being typed in the wizard, up to 4000 characters, line breaks kept, kept until the campaign is signed off and never sent. An empty text clears it. Available while this feature is on for your account; after the sign-off a new text is refused with 409.","maxLength":4000,"type":"string"},"draft_subject":{"description":"The subject of the message being typed in the wizard, one line of up to 200 characters, kept on the campaign until it is signed off (a draft, or discovered) so your screens can show it again. It is never sent: starting still needs a saved message. An empty text clears it. Available while this feature is on for your account; after the sign-off a new text is refused with 409.","maxLength":200,"type":"string"},"exclude_known":{"description":"Send true to leave known companies (on any of your lists or campaigns) out of the search from now on, false to keep them. Changes nothing already on the campaign.","type":"boolean"},"harvest_contacts":{"description":"Send true, with harvest_terms_accepted true, to collect contact details on a campaign made without them: one pass then reads the contact pages of the companies already read (harvest_job_id). Send false to stop collecting; what was found is kept until the retention purge. Available while this feature is on for your account.","type":"boolean"},"harvest_terms_accepted":{"description":"True when the person agrees to the Terms and the Privacy Policy for contact details. Needed with harvest_contacts true.","type":"boolean"},"keywords":{"description":"Replaces the keywords, as at create: up to twenty once blanks and repeats are dropped. Only before the search starts; after it, copy the campaign for a different search.","items":{"maxLength":100,"type":"string"},"maxItems":50,"minItems":1,"type":"array"},"language":{"description":"Only before the search starts.","maxLength":2,"minLength":2,"type":"string"},"name":{"maxLength":200,"type":"string"},"rate_per_hour":{"description":"Enquiries per hour at most. Before the search starts, always; after it, while live edits are on for your account, in any state but done or cancelled, from the next company.","maximum":500,"minimum":1,"type":"integer"},"send_enquiries":{"type":"boolean"},"skip_contacted":{"description":"Only before the search starts.","type":"boolean"},"solve_budget_cents":{"maximum":100000,"minimum":0,"type":"integer"},"wizard_step":{"description":"Where your screens were in setting the campaign up, up to 80 characters of a-z, 0-9, _ and -, given back as it was sent and never read by us. An empty text clears it.","maxLength":80,"type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignChanged"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Change a campaign","tags":["Campaigns"]}},"/v1/campaigns/{id}/ai-versions":{"get":{"description":"Needs a key with the read scope. Answers one page at a time. The answer carries page with limit, offset and total. A written version is exactly what that company gets, unless the message or the language changes first: it is then outdated, and a new version is written just before sending. Changing ai_writer drops every version not sent yet. A failed one means the company gets the message as written, and reason says why.","operationId":"getV1CampaignsByIdAi-versions","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"Left out, it is 20.","in":"query","name":"limit","required":false,"schema":{"default":20,"maximum":100,"minimum":1,"type":"integer"}},{"description":"Left out, it is 0.","in":"query","name":"offset","required":false,"schema":{"default":0,"maximum":1000000,"minimum":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiVersionPage"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The AI writer's versions of a campaign's message, the newest asked for first","tags":["Campaigns"]},"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/jobs/{id}. The AI writer must be on for the campaign (ai_writer). Once the job at Location is done, the versions are read at GET /campaigns/{id}/ai-versions. A version is exactly what that company gets, unless the message or the language changes first, when a new one is written just before sending; changing ai_writer drops it. One preview runs at a time on a campaign.","operationId":"postV1CampaignsByIdAi-versions","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"target_ids":{"description":"The companies to write versions for: one to three ids from GET /campaigns/{id}/targets. Left out, the next three the send would reach that have had their website looked at and have no version yet.","items":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"maxItems":3,"minItems":1,"type":"array"}},"type":"object"}}},"required":false},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiVersionsQueued"}}},"description":"Accepted. The work is queued, and the answer names the job that does it.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Ask the AI writer for its versions of the message, before sending","tags":["Campaigns"]}},"/v1/campaigns/{id}/assist-budget":{"put":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once.","operationId":"putV1CampaignsByIdAssist-budget","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"assist_budget_cents":{"maximum":100000000,"minimum":0,"type":"integer"}},"required":["assist_budget_cents"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssistBudgetSet"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Set what a campaign may spend on assistance","tags":["Campaigns"]}},"/v1/campaigns/{id}/block-reasons":{"get":{"description":"Needs a key with the read scope.","operationId":"getV1CampaignsByIdBlock-reasons","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BlockReasons"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Why companies on a campaign were not contacted","tags":["Campaigns"]}},"/v1/campaigns/{id}/changes":{"get":{"description":"Needs a key with the read scope. One entry per thing a person can change: whether it can change now, the words a change would be refused with (null when it can), the call that changes it, and when a change takes effect (now, next_company or next_search).","operationId":"getV1CampaignsByIdChanges","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignChanges"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"What can change on a campaign now","tags":["Campaigns"]}},"/v1/campaigns/{id}/charges":{"get":{"description":"Needs a key with the read scope. A send is charged only when the form confirmed it took the message. A send that failed, could not be confirmed, or was blocked is never charged. This says how many sends were tried, how many were charged and for how much, how many were not and why, what those would have cost at the campaign's price, and the latest sends not charged (limit, newest first). Reading this changes nothing. While it is not available for your account the call is refused in words.","operationId":"getV1CampaignsByIdCharges","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"Left out, it is 50.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":200,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignCharges"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"One campaign's sends: charged, and not charged with the reason","tags":["Campaigns"]}},"/v1/campaigns/{id}/contacts":{"get":{"description":"Needs a key with the read scope.","operationId":"getV1CampaignsByIdContacts","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignContacts"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The contacts a campaign harvested","tags":["Campaigns"]}},"/v1/campaigns/{id}/copies":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/campaigns/{id}. mode kept (the default) copies the companies that were checked and kept into a new draft. mode settings makes a new draft with the same search words, or the same saved list when the campaign was made from one, the same message, versions, office hours, towns and settings, and no companies until you start it; it is refused in words while it is not available for your account. Neither way copies the repeat schedule, sends, replies, history or contact harvesting. GET /campaigns/{id}/copies/preview says what each way would give.","operationId":"postV1CampaignsByIdCopies","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"mode":{"enum":["kept","settings"],"type":"string"},"name":{"maxLength":200,"type":"string"}},"type":"object"}}},"required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignCopied"}}},"description":"Made. Location points at where it is read.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"Location":{"description":"Where what was made is read.","schema":{"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Copy a campaign","tags":["Campaigns"]}},"/v1/campaigns/{id}/copies/preview":{"get":{"description":"Needs a key with the read scope. kept counts the companies a copy with its companies would take and what writing to them would cost now; settings says whether the campaign has a search or a list to run again. Reading this changes nothing.","operationId":"getV1CampaignsByIdCopiesPreview","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignCopyPreview"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"What copying a campaign would give, each way","tags":["Campaigns"]}},"/v1/campaigns/{id}/copies/{country}":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/campaigns/{id}.","operationId":"postV1CampaignsByIdCopiesByCountry","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"in":"path","name":"country","required":true,"schema":{"description":"A two letter country code, like DE.","maxLength":2,"minLength":2,"type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"keyword":{"maxLength":100,"type":"string"},"language":{"description":"A two letter language code, like de.","maxLength":2,"minLength":2,"type":"string"}},"type":"object"}}},"required":false},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignCopiedToCountry"}}},"description":"Made. Location points at where it is read.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"Location":{"description":"Where what was made is read.","schema":{"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Copy a campaign to another country","tags":["Campaigns"]}},"/v1/campaigns/{id}/cost-forecast":{"get":{"description":"Needs a key with the read scope. companies_left is its companies not yet written to, and 0 for a campaign that is done, cancelled or list only (it sends nothing more); draft, found and paused campaigns show what they would need. cost_micros is companies_left times unit_micros, the price of one enquiry now. covered is true when it needs nothing, when the credit available pays for it, and always true for an account billed afterwards.","operationId":"getV1CampaignsByIdCost-forecast","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignCostForecast"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"What a campaign still needs, and whether the credit left covers it","tags":["Campaigns"]}},"/v1/campaigns/{id}/cost-preview":{"get":{"description":"Needs a key with the read scope.","operationId":"getV1CampaignsByIdCost-preview","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostPreview"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"What a campaign would cost","tags":["Campaigns"]}},"/v1/campaigns/{id}/extra-search":{"get":{"description":"Needs a key with the read scope. Offered while this feature is on for your account, in Poland, to a campaign whose search found fewer companies than it asked for (see its discovery_end). The extra search adds up to five nearby towns with 5,000 people or more, within 25 km of the campaign's first town, or 50 km when there are none that close, biggest first. estimated_new is an estimate. The fee is the search fee: fee_micros_per_company for each new company that could be written to and is not sent to, charged when the campaign's hold settles, so price_micros is the most it can cost. Searches we already hold are reused at no cost. When an extra search cannot pay for itself at the lowest price per enquiry, the campaign's search budget cannot cover it, or its search fee is already settled, it is not offered and the answer says why.","operationId":"getV1CampaignsByIdExtra-search","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtraSearchQuote"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"What an extra search for a short campaign would search, find and cost","tags":["Campaigns"]},"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/jobs/{id}. Works out the quote again and starts it: the nearby towns are added to the campaign and its search is queued, as POST /campaigns/{id}/jobs with kind discover would, so the same credit check and hold apply. Refused while this feature is off for your account, and whenever GET /campaigns/{id}/extra-search would refuse.","operationId":"postV1CampaignsByIdExtra-search","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"max_price_micros":{"description":"The price_micros of the quote you accepted. When the price is now higher, nothing starts and the answer asks for a new quote.","maximum":1000000000,"minimum":0,"type":"integer"}},"type":"object"}}},"required":false},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtraSearchQueued"}}},"description":"Accepted. The work is queued, and the answer names the job that does it.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Start the extra search a campaign was quoted","tags":["Campaigns"]}},"/v1/campaigns/{id}/imports":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once.","operationId":"postV1CampaignsByIdImports","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"list_id":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"max_targets":{"maximum":5000,"minimum":1,"type":"integer"}},"required":["list_id"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListImported"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Add a saved list to a campaign","tags":["Campaigns"]}},"/v1/campaigns/{id}/jobs":{"get":{"description":"Needs a key with the read scope. Answers one page at a time. The answer carries page with limit, offset and total.","operationId":"getV1CampaignsByIdJobs","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"in":"query","name":"state","required":false,"schema":{"description":"One or more of: queued, running, done, failed, cancelled, separated by commas.","type":"string"}},{"description":"Left out, it is 50.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Left out, it is 0.","in":"query","name":"offset","required":false,"schema":{"default":0,"maximum":1000000,"minimum":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobPage"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The work queued on a campaign, newest first","tags":["Campaigns"]},"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/jobs/{id}. On a prepaid account a discover holds discovery_target (500 when unset) times the enquiry price of the available credit until the companies found are sent to; when less is available it is refused and the answer says how much to add. When the hold settles, a search fee is charged for each company that could be written to and was not sent to; a campaign that sends to all of them pays no fee. See the campaign's search_hold. While this feature is on for your account, the website check (profile) is queued by itself whenever companies are added, and asking for one while it is queued or running answers 202 with that job instead of a refusal.","operationId":"postV1CampaignsByIdJobs","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"kind":{"description":"Sending is not queued here: once the list is signed for, use POST /v1/campaigns/{id}/send.","enum":["discover","profile"],"type":"string"}},"required":["kind"],"type":"object"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobQueued"}}},"description":"Accepted. The work is queued, and the answer names the job that does it.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Queue work on a campaign","tags":["Campaigns"]}},"/v1/campaigns/{id}/locations":{"get":{"description":"Needs a key with the read scope.","operationId":"getV1CampaignsByIdLocations","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignTowns"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The places a campaign searches","tags":["Campaigns"]},"put":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once.","operationId":"putV1CampaignsByIdLocations","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"locations":{"items":{"additionalProperties":false,"properties":{"distance_km":{"maximum":1000,"minimum":0,"type":"number"},"location_code":{"maximum":2147483647,"minimum":1,"type":"integer"},"location_name":{"maxLength":200,"type":"string"}},"required":["location_code"],"type":"object"},"maxItems":60,"minItems":0,"type":"array"}},"required":["locations"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignTownsSet"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Set the places a campaign searches","tags":["Campaigns"]}},"/v1/campaigns/{id}/locations/{location_code}":{"delete":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once.","operationId":"deleteV1CampaignsByIdLocationsByLocation_code","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"in":"path","name":"location_code","required":true,"schema":{"maximum":2147483647,"minimum":1,"type":"integer"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignTownDropped"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Drop one place from a campaign","tags":["Campaigns"]}},"/v1/campaigns/{id}/message":{"put":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. This replaces what is saved: an optional field left out is cleared, so send every value you want kept. Send template_id for one message, template_ids for one to five sent in turns (one to twenty where offered), or template_group for every message of a group. Companies not sent to yet are given one of the new messages. Once one enquiry has gone out the message can change only while live edits are on for your account, and never while a send is in progress (pause first, 409): companies already written to keep the message they got, the others get the new ones.","operationId":"putV1CampaignsByIdMessage","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"template_group":{"description":"Every message saved under this group, in the order they were saved, in place of template_ids. The list is taken when you send this and kept: a message added to the group later does not join the campaign. At most twenty messages. Read while GET /offered says twenty_messages.","maxLength":100,"type":"string"},"template_id":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"template_ids":{"description":"One to five messages from GET /templates (one to twenty where GET /offered says twenty_messages), sent in turns: each company in the order the campaign sends gets the next one (A, B, C, A, B, C...) and keeps it on a retry; follow-ups keep their step's own message. Results per message at GET /campaigns/{id}/versions. Send this or template_id, not both; one id here is the same as template_id.","items":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"maxItems":20,"minItems":1,"type":"array"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignMessageSet"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Choose the message a campaign sends","tags":["Campaigns"]}},"/v1/campaigns/{id}/office-hours":{"delete":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once.","operationId":"deleteV1CampaignsByIdOffice-hours","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignOfficeHoursCleared"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Give a campaign the country's office hours again","tags":["Campaigns"]},"get":{"description":"Needs a key with the read scope. The hours enquiries go out in, in the time zone of the campaign's country: the campaign's own (own true) or the country's. The country's public holidays are always skipped. next_open_slot is the next hour sending may start.","operationId":"getV1CampaignsByIdOffice-hours","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignOfficeHoursNow"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"A campaign's office hours","tags":["Campaigns"]},"put":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. While office hours per campaign are on for your account; off, this is refused. Any state but done or cancelled, from the next company. A company outside the hours waits for the next open hour.","operationId":"putV1CampaignsByIdOffice-hours","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"close_hour":{"description":"The hour sending stops, 1 to 24, after open_hour.","maximum":24,"minimum":1,"type":"integer"},"days":{"description":"The days sending may happen, 1 (Monday) to 7 (Sunday).","items":{"maximum":7,"minimum":1,"type":"integer"},"maxItems":7,"minItems":1,"type":"array"},"open_hour":{"description":"The hour sending may start, 0 to 23, in the campaign country's time zone.","maximum":23,"minimum":0,"type":"integer"}},"required":["open_hour","close_hour","days"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignOfficeHoursSet"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Set a campaign's own office hours","tags":["Campaigns"]}},"/v1/campaigns/{id}/pause":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. Nothing more is sent from the next company on. The campaign keeps its list, its signature and its place; resume it to carry on. Stopping, by contrast, ends it for good.","operationId":"postV1CampaignsByIdPause","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"reason":{"description":"Why, for your own records.","maxLength":500,"type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignPaused"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Pause a sending campaign","tags":["Campaigns"]}},"/v1/campaigns/{id}/reply-interest":{"get":{"description":"Needs a key with the read scope. Counts the mail tied to this campaign as a reply. on says whether tagging is available for your account; while it is not, every reply counts as untagged. Reading this changes nothing.","operationId":"getV1CampaignsByIdReply-interest","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignReplyInterest"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"One campaign's replies: interested, not interested, not tagged yet","tags":["Campaigns"]}},"/v1/campaigns/{id}/results":{"get":{"description":"Needs a key with the read scope.","operationId":"getV1CampaignsByIdResults","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignResults"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"What came back from a campaign","tags":["Campaigns"]}},"/v1/campaigns/{id}/resume":{"post":{"description":"Needs a key with the send scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/jobs/{id}. Answers the job that carries on sending, at its Location. Every rule of sending applies again: a list that changed since it was signed is refused.","operationId":"postV1CampaignsByIdResume","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResumeQueued"}}},"description":"Accepted. The work is queued, and the answer names the job that does it.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Resume a paused campaign","tags":["Campaigns"]}},"/v1/campaigns/{id}/retries":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once.","operationId":"postV1CampaignsByIdRetries","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"solve_budget_cents":{"maximum":100000,"minimum":0,"type":"integer"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RetriesReopened"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Try the companies a campaign missed again","tags":["Campaigns"]}},"/v1/campaigns/{id}/saved-lists":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/lists/{id}.","operationId":"postV1CampaignsByIdSaved-lists","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"description":{"maxLength":1000,"type":"string"},"name":{"maxLength":200,"type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignSavedAsList"}}},"description":"Made. Location points at where it is read.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"Location":{"description":"Where what was made is read.","schema":{"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Save a campaign's companies as a list","tags":["Campaigns"]}},"/v1/campaigns/{id}/schedule":{"delete":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. No run starts after this. The history stays; PUT sets a new schedule.","operationId":"deleteV1CampaignsByIdSchedule","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignScheduleStopped"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Stop a campaign's repeat schedule","tags":["Campaigns"]},"get":{"description":"Needs a key with the read scope. schedule is null until one is set. offered says whether repeat schedules are open for your account; default_time_zone is the time zone a new schedule takes when none is given.","operationId":"getV1CampaignsByIdSchedule","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignScheduleNow"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"A campaign's repeat schedule","tags":["Campaigns"]},"put":{"description":"Needs a key with the send scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. This replaces what is saved: an optional field left out is cleared, so send every value you want kept. While repeat schedules are open for your account; off, this is refused. Setting it again replaces it and starts it again. Each run acts as the person who last set or resumed it, with the same rules as doing it by hand: same needs a signed list, and new companies are sent to only once their list is signed. A run more than an hour late is skipped, never sent late. After 3 runs in a row that start nothing, the schedule pauses itself and paused_reason says why.","operationId":"putV1CampaignsByIdSchedule","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"days":{"description":"The days it runs, 1 (Monday) to 7 (Sunday).","items":{"maximum":7,"minimum":1,"type":"integer"},"maxItems":7,"minItems":1,"type":"array"},"mode":{"description":"What a run does: new finds more companies, same writes to the companies on the signed list not written to yet.","enum":["new","same"],"type":"string"},"time":{"description":"The time it runs, HH:MM, such as 09:00, in time_zone.","maxLength":5,"type":"string"},"time_zone":{"description":"The time zone, such as Europe/Warsaw. Left out, your account's time zone.","maxLength":64,"type":"string"}},"required":["days","time","mode"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignScheduleSet"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Set a campaign to repeat on chosen days","tags":["Campaigns"]}},"/v1/campaigns/{id}/schedule/pause":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once.","operationId":"postV1CampaignsByIdSchedulePause","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignSchedulePaused"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Pause a campaign's repeat schedule","tags":["Campaigns"]}},"/v1/campaigns/{id}/schedule/resume":{"post":{"description":"Needs a key with the send scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. Runs act as you from now on. A stopped schedule is set again with PUT, not resumed.","operationId":"postV1CampaignsByIdScheduleResume","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignScheduleResumed"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Resume a paused repeat schedule","tags":["Campaigns"]}},"/v1/campaigns/{id}/schedule/runs":{"get":{"description":"Needs a key with the read scope. Answers one page at a time. The answer carries page with limit, offset and total.","operationId":"getV1CampaignsByIdScheduleRuns","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"Left out, it is 20.","in":"query","name":"limit","required":false,"schema":{"default":20,"maximum":100,"minimum":1,"type":"integer"}},{"description":"Left out, it is 0.","in":"query","name":"offset","required":false,"schema":{"default":0,"maximum":1000000,"minimum":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignScheduleRunPage"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The runs of a campaign's repeat schedule, newest first","tags":["Campaigns"]}},"/v1/campaigns/{id}/send":{"post":{"description":"Needs a key with the send scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/jobs/{id}.","operationId":"postV1CampaignsByIdSend","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendQueued"}}},"description":"Accepted. The work is queued, and the answer names the job that does it.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Send a signed campaign's enquiries","tags":["Campaigns"]}},"/v1/campaigns/{id}/sequence":{"get":{"description":"Needs a key with the read scope.","operationId":"getV1CampaignsByIdSequence","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sequence"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The follow-up steps of a campaign","tags":["Campaigns"]},"put":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once.","operationId":"putV1CampaignsByIdSequence","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"steps":{"items":{"additionalProperties":false,"properties":{"gap_days":{"maximum":60,"minimum":1,"type":"integer"},"kind":{"enum":["form","manual_linkedin","manual_facebook"],"type":"string"},"template_id":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"type":"object"},"maxItems":4,"minItems":0,"type":"array"}},"required":["steps"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SequenceSet"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Set the follow-up steps of a campaign","tags":["Campaigns"]}},"/v1/campaigns/{id}/signoff":{"get":{"description":"Needs a key with the read scope.","operationId":"getV1CampaignsByIdSignoff","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Signoff"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"What signing a campaign's list would sign","tags":["Campaigns"]},"post":{"description":"Needs a key with the signoff scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/campaigns/{id}/signoff.","operationId":"postV1CampaignsByIdSignoff","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"list_hash":{"description":"The 64 character hash the sign-off read answered, sent back unchanged.","maxLength":64,"minLength":64,"type":"string"},"wording":{"maxLength":2000,"type":"string"}},"required":["wording"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignoffMade"}}},"description":"Made. Location points at where it is read.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"Location":{"description":"Where what was made is read.","schema":{"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Sign for a campaign's list","tags":["Campaigns"]}},"/v1/campaigns/{id}/stop":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once.","operationId":"postV1CampaignsByIdStop","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignStopped"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Stop a campaign","tags":["Campaigns"]}},"/v1/campaigns/{id}/targets":{"get":{"description":"Needs a key with the read scope. Answers one page at a time. The answer carries page with limit, offset and total. search looks in the company site, the search words that found it, the town name and the company's register number, capitals ignored; a % or _ in it is a character to find, not a wildcard. total counts the companies that match the state, the reason group, the response, sent_before and the search together; counts stays the whole campaign, whatever is asked for. rank is the position in the search results, and a company without one comes last in either direction. Every order ends on rank and then on the company site, so pages never repeat or skip a company.","operationId":"getV1CampaignsByIdTargets","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"in":"query","name":"state","required":false,"schema":{"enum":["pending","ready","submitted","no_form","failed","blocked","excluded","suppressed","sending","unknown","waiting"],"type":"string"}},{"description":"The groups are the ones GET /v1/campaigns/{id}/block-reasons counts.","in":"query","name":"reason_group","required":false,"schema":{"enum":["delivered","sent_unconfirmed","site_refused","challenge","no_way_in","not_a_target","site_unreachable","form_needs_something","form_would_not_fill","our_fault","held_back","unrecognised","not_recorded"],"type":"string"}},{"description":"Only the companies with a recorded response of that kind. With replied, the total is the replied number of GET /v1/campaigns/{id}/results.","in":"query","name":"response","required":false,"schema":{"enum":["replied","auto_reply","bounced","objected"],"type":"string"}},{"description":"Only the companies this campaign sent something that went at or before this time, such as 2026-11-01T00:00:00Z, whatever their state now. With a mail's received_at, these are the companies PATCH /v1/inbound-matches/{id} can tie it to.","in":"query","name":"sent_before","required":false,"schema":{"description":"A time with its zone, like 2026-09-17T10:30:00Z or 2026-09-17T12:30:00+02:00.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"}},{"in":"query","name":"search","required":false,"schema":{"maxLength":200,"type":"string"}},{"description":"Rank puts the best search position first, domain runs A to Z, updated puts the last change first.","in":"query","name":"sort","required":false,"schema":{"enum":["rank","domain","updated"],"type":"string"}},{"description":"Turns the chosen order round. Left out, rank and domain run ascending and updated runs newest first.","in":"query","name":"direction","required":false,"schema":{"enum":["asc","desc"],"type":"string"}},{"description":"Left out, it is 200.","in":"query","name":"limit","required":false,"schema":{"default":200,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Left out, it is 0.","in":"query","name":"offset","required":false,"schema":{"default":0,"maximum":1000000,"minimum":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyPage"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The companies a campaign found","tags":["Campaigns"]},"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once.","operationId":"postV1CampaignsByIdTargets","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"url":{"maxLength":2000,"type":"string"}},"required":["url"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyAdded"}}},"description":"Made. The answer names it.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Add one company to a campaign by address","tags":["Campaigns"]}},"/v1/campaigns/{id}/targets/remove":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. Each company is answered once, in the order first sent: removed, or skipped with why (not_on_campaign, already_contacted, already_removed). A signed-off list refuses the whole call with 409, as taking one company off does. Each company taken off can be put back with POST /v1/campaigns/{id}/targets/{target_id}/restore. list_hash is the fingerprint of the list after the call, null while no company on it is ready or signed for.","operationId":"postV1CampaignsByIdTargetsRemove","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"reason":{"description":"Why they were taken off, up to 200 characters, kept with each company. Left out, the reason is that a reviewer dropped them.","maxLength":200,"type":"string"},"target_ids":{"description":"One to 500 companies of this campaign, by the target_id each has in GET /v1/campaigns/{id}/targets. Each is answered once, in the order sent.","items":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"maxItems":500,"minItems":1,"type":"array"}},"required":["target_ids"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompaniesRemoved"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Take several companies off a campaign","tags":["Campaigns"]}},"/v1/campaigns/{id}/targets/{target_id}":{"delete":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once.","operationId":"deleteV1CampaignsByIdTargetsByTarget_id","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"in":"path","name":"target_id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"in":"query","name":"reason","required":false,"schema":{"maxLength":200,"type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyDropped"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Take one company off a campaign","tags":["Campaigns"]},"get":{"description":"Needs a key with the read scope.","operationId":"getV1CampaignsByIdTargetsByTarget_id","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"in":"path","name":"target_id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyDetail"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"One company a campaign found","tags":["Campaigns"]}},"/v1/campaigns/{id}/targets/{target_id}/notes":{"get":{"description":"Needs a key with the read scope. Answers one page at a time. The answer carries page with limit, offset and total. Newest first. A withdrawn note stays in the list with withdrawn_at set.","operationId":"getV1CampaignsByIdTargetsByTarget_idNotes","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"in":"path","name":"target_id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"Left out, it is 100.","in":"query","name":"limit","required":false,"schema":{"default":100,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Left out, it is 0.","in":"query","name":"offset","required":false,"schema":{"default":0,"maximum":1000000,"minimum":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotePage"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The notes on one company of a campaign","tags":["Campaigns"]},"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. The notes on a company are read at GET /v1/campaigns/{id}/targets/{target_id}/notes, newest first.","operationId":"postV1CampaignsByIdTargetsByTarget_idNotes","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"in":"path","name":"target_id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"body":{"maxLength":2000,"type":"string"}},"required":["body"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteAdded"}}},"description":"Made. The answer names it.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Add a note to a company","tags":["Campaigns"]}},"/v1/campaigns/{id}/targets/{target_id}/owner":{"put":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. This replaces what is saved: an optional field left out is cleared, so send every value you want kept. The owner must be an active member of your staff. Send the body without owner_user_id to clear the owner.","operationId":"putV1CampaignsByIdTargetsByTarget_idOwner","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"in":"path","name":"target_id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"owner_user_id":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnerSet"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Set or clear who looks after a company","tags":["Campaigns"]}},"/v1/campaigns/{id}/targets/{target_id}/responses":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. Saying it again makes nothing: the answer is a 200 with the one that was already there. The kind objected also puts the company on your do-not-contact list, and the answer says so. Leave channel out for email, and occurred_at out for now; a time later than now or earlier than the send is refused.","operationId":"postV1CampaignsByIdTargetsByTarget_idResponses","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"in":"path","name":"target_id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"channel":{"enum":["form","email","phone","other"],"type":"string"},"kind":{"enum":["replied","auto_reply","bounced","objected"],"type":"string"},"note":{"maxLength":500,"type":"string"},"occurred_at":{"description":"A time with its zone, like 2026-09-17T10:30:00Z or 2026-09-17T12:30:00+02:00.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"}},"required":["kind"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswerRecorded"}}},"description":"It was already there, so nothing was made. The answer is the one that was there.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswerRecorded"}}},"description":"Made. The answer names it.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Record what a company answered","tags":["Campaigns"]}},"/v1/campaigns/{id}/targets/{target_id}/restore":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. Only a company a reviewer took off comes back, and only while the list is not signed off; a signed-off list refuses with 409, the same as taking a company off. The company returns to the state it was in when it was taken off, with the problem it had then. The answer is the company as it is now, plus the fingerprint of the list it is back on.","operationId":"postV1CampaignsByIdTargetsByTarget_idRestore","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"in":"path","name":"target_id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyRestored"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Put a company a reviewer took off back on a campaign","tags":["Campaigns"]}},"/v1/campaigns/{id}/versions":{"get":{"description":"Needs a key with the read scope. One entry per message, in turn order; a campaign with one message has one. A company counts for the message it was sent. There is no automatic switch to the best message. A message that was sent but is no longer used is listed last with in_rotation false and position null.","operationId":"getV1CampaignsByIdVersions","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignVersions"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Results of each of a campaign's messages","tags":["Campaigns"]}},"/v1/campaigns/{id}/versions-instruction":{"put":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. This replaces what is saved: an optional field left out is cleared, so send every value you want kept. The writer follows it together with the house style (GET /house-style); its rules and checks still apply. Versions already written are written again at their next send, so preview them with POST /campaigns/{id}/ai-versions. When this feature is off for your account, offered is false and nothing changes.","operationId":"putV1CampaignsByIdVersions-instruction","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"text":{"description":"In your words, at most 500 characters: stress our short delivery times, mention their machines. Empty clears it.","maxLength":500,"type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VersionsInstructionSaved"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Tell the AI writer what to stress in this campaign's per-company versions","tags":["Campaigns"]}},"/v1/campaigns/{id}/weekly-cap":{"get":{"description":"Needs a key with the read scope. A company that already had 3 sends this week waits until next_allowed_at (Monday 00:00 in your account's time zone) and is then sent to by itself; the campaign is not finished while one waits. While the cap is off for your account, on is false and companies_waiting is 0.","operationId":"getV1CampaignsByIdWeekly-cap","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignWeeklyCapNow"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"How many of a campaign's companies wait for next week","tags":["Campaigns"]}},"/v1/campaigns/{id}/why-waiting":{"get":{"description":"Needs a key with the read scope.","operationId":"getV1CampaignsByIdWhy-waiting","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"in":"query","name":"cooldown_days","required":false,"schema":{"maximum":3650,"minimum":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhyWaiting"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Why a campaign is not moving","tags":["Campaigns"]}},"/v1/captcha-free":{"get":{"description":"Needs a key with the read scope. Answers one page at a time. The answer carries page with limit, offset and total.","operationId":"getV1Captcha-free","parameters":[{"in":"query","name":"campaign_id","required":false,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"Left out, it is 200.","in":"query","name":"limit","required":false,"schema":{"default":200,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Left out, it is 0.","in":"query","name":"offset","required":false,"schema":{"default":0,"maximum":1000000,"minimum":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptchaFreePage"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The companies whose contact form has no captcha","tags":["Captcha-free list"]}},"/v1/captcha-free/summary":{"get":{"description":"Needs a key with the read scope.","operationId":"getV1Captcha-freeSummary","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptchaFreeSummary"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"How big the captcha-free list is and how fresh","tags":["Captcha-free list"]}},"/v1/closing-lines":{"get":{"description":"Needs a key with the read scope. Each line is a template holding {{opt_out_link}}, filled with opt_out_link at sending. custom is true when it is your own wording; standard is ours. While this feature is off for your account, offered is false and our line is used.","operationId":"getV1Closing-lines","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClosingLines"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The closing line on how to stop being contacted, per language","tags":["Closing lines"]}},"/v1/closing-lines/{language}":{"delete":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. cleared is false when there was no wording of your own. When this feature is off for your account, offered is false.","operationId":"deleteV1Closing-linesByLanguage","parameters":[{"in":"path","name":"language","required":true,"schema":{"description":"A two letter language code, like de.","maxLength":2,"minLength":2,"type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClosingLineCleared"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Go back to our closing line for one language","tags":["Closing lines"]},"put":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. The closing line cannot be removed: the way to stop being contacted is in every message. DELETE brings ours back. When this feature is off for your account, offered is false and nothing changes.","operationId":"putV1Closing-linesByLanguage","parameters":[{"description":"One of the languages GET /offered lists.","in":"path","name":"language","required":true,"schema":{"description":"A two letter language code, like de.","maxLength":2,"minLength":2,"type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"line":{"description":"Your wording, one line of 20 to 500 characters, holding {{opt_out_link}} exactly once where the link goes. No other fill-in.","maxLength":500,"type":"string"}},"required":["line"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClosingLineSaved"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Word the closing line yourself for one language","tags":["Closing lines"]}},"/v1/companies/{domain}/status":{"get":{"description":"Needs a key with the read scope. With an X-Customer-Ref, only what that customer's campaigns did with the company.","operationId":"getV1CompaniesByDomainStatus","parameters":[{"in":"path","name":"domain","required":true,"schema":{"maxLength":253,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyStatus"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"What happened with one company","tags":["Company status"]}},"/v1/companies/{domain}/week":{"get":{"description":"Needs a key with the read scope. The week runs from Monday 00:00 to Monday 00:00 in your account's time zone. Only sends that went out count, from every campaign and follow-up of your account. With an X-Customer-Ref, sends_this_week counts only that customer's sends, while capped and next_allowed_at follow your whole account, which is what sending obeys. While the cap is off for your account, on is false and capped is always false.","operationId":"getV1CompaniesByDomainWeek","parameters":[{"in":"path","name":"domain","required":true,"schema":{"maxLength":253,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyWeekNow"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"How many sends one company had this week","tags":["Company status"]}},"/v1/cost-estimate":{"get":{"description":"Needs a key with the read scope. Both numbers are optional and default to what creating a campaign defaults them to: no search target and no challenge budget, which sets nothing aside. The same formula as the cost preview of a campaign that exists.","operationId":"getV1Cost-estimate","parameters":[{"in":"query","name":"discovery_target","required":false,"schema":{"maximum":5000,"minimum":1,"type":"integer"}},{"in":"query","name":"solve_budget_cents","required":false,"schema":{"maximum":100000,"minimum":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CostEstimate"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"What a campaign with these numbers would set aside, before it exists","tags":["Cost estimate"]}},"/v1/countries":{"get":{"description":"Needs a key with the read scope. Codes are ISO 3166-1 alpha-2. Sanctioned countries are never listed. Show the name with your platform's own region names, so the picker reads in the visitor's language.","operationId":"getV1Countries","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Countries"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The countries a campaign can be run in","tags":["Countries"]}},"/v1/countries/{country}/regions":{"get":{"description":"Needs a key with the read scope.","operationId":"getV1CountriesByCountryRegions","parameters":[{"in":"path","name":"country","required":true,"schema":{"description":"A two letter country code, like DE.","maxLength":2,"minLength":2,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Regions"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The regions of a country","tags":["Countries"]}},"/v1/countries/{country}/towns":{"get":{"description":"Needs a key with the read scope. Without q the biggest towns come first. Names are in English as the search provider writes them (Munich, not Muenchen). A town without a position (lat and lon null) can be searched but cannot be the centre of a ring. An empty location list on a campaign means the whole country.","operationId":"getV1CountriesByCountryTowns","parameters":[{"in":"path","name":"country","required":true,"schema":{"description":"A two letter country code, like DE.","maxLength":2,"minLength":2,"type":"string"}},{"description":"Part of the town's name, accents ignored. Towns that start with it come first.","in":"query","name":"q","required":false,"schema":{"maxLength":100,"type":"string"}},{"description":"Only the towns of this region, written exactly as GET /countries/{country}/regions names it.","in":"query","name":"region","required":false,"schema":{"maxLength":200,"type":"string"}},{"description":"The location_code of a town: answers the towns within radius_km of it instead, nearest first.","in":"query","name":"near","required":false,"schema":{"maximum":2147483647,"minimum":1,"type":"integer"}},{"description":"The ring around near in km: 10, 25 or 50, and required with near.","in":"query","name":"radius_km","required":false,"schema":{"maximum":50,"minimum":10,"type":"integer"}},{"description":"How many towns, without near. With near the answer holds at most 60, a campaign's cap. Left out, it is 20.","in":"query","name":"limit","required":false,"schema":{"default":20,"maximum":100,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Towns"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The towns of a country a campaign can search","tags":["Countries"]}},"/v1/credit":{"get":{"description":"Needs a key with the read scope. Amounts are in micro-dollars (1 USD = 1,000,000). Sent with an X-Customer-Ref header it reads that customer's credit only. A confirmed enquiry is charged once; an unconfirmed, blocked or failed one is never charged. When the credit cannot pay for the next enquiry, sending stops and the campaign says why. held_micros is what open searches hold until their companies are sent to; available_micros is what a new search or another campaign can use.","operationId":"getV1Credit","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Credit"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The prepaid credit left and the price of the next enquiry","tags":["Credit"]}},"/v1/credit/billing-details":{"get":{"description":"Needs a key with the read scope. details is null until they are saved. tax_id_check.state is none (no tax ID), not_checked (a tax ID outside the EU: kept, never checked), pending (the check is under way, usually done within a minute), valid, invalid, or unavailable (the European Commission's VAT number service did not answer; it is asked again once a day for 30 days at most, and next_check_at says when). registered_name is the name the EU register holds for a valid VAT number. reverse_charge is true only for a valid EU VAT number of a country other than Poland. switch_on says whether saving is offered now. Sent with an X-Customer-Ref header it reads that customer's details only.","operationId":"getV1CreditBilling-details","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingDetails"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The billing details and the EU VAT number check","tags":["Credit"]},"put":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. This replaces what is saved: an optional field left out is cleared, so send every value you want kept. Saves the details whole: a field left out is cleared. The tax ID is kept in capitals without spaces, dots, dashes or slashes; in an EU country it carries that country's prefix (EL for Greece), and a VAT number of another EU country is refused. An EU VAT number is checked with the European Commission's VAT number service; saving the same tax ID again keeps its check, and a new one is checked again. A country we cannot serve is refused. A Polish NIP must be 10 digits with the right check digit. In Poland buyer_type is required: a company gives its NIP in tax_id, a private person gives none. The answer is the details as GET /credit/billing-details answers them. Offered while switch_on is true. Sent with an X-Customer-Ref header it saves that customer's details only.","operationId":"putV1CreditBilling-details","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"address_line1":{"description":"Street and number.","maxLength":200,"type":"string"},"address_line2":{"description":"Building, floor or suite, when there is one.","maxLength":200,"type":"string"},"buyer_type":{"description":"Who buys: company, or individual for a private person (who gives no tax ID). Required in Poland, where a tax ID given without it means company.","enum":["company","individual"],"type":"string"},"city":{"description":"The town.","maxLength":100,"type":"string"},"country_code":{"description":"The country the company is registered in.","maxLength":2,"minLength":2,"type":"string"},"legal_name":{"description":"The company's registered name, as an invoice should show it: 2 to 200 characters.","maxLength":200,"type":"string"},"postal_code":{"description":"The postcode: 2 to 12 letters, digits, spaces or dashes.","maxLength":12,"type":"string"},"region":{"description":"The state, province or region, where addresses carry one.","maxLength":100,"type":"string"},"tax_id":{"description":"The company's VAT number or other tax ID. In an EU country the country prefix may be left out: it is added.","maxLength":40,"type":"string"}},"required":["legal_name","address_line1","city","country_code"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingDetailsSaved"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Save the billing details","tags":["Credit"]}},"/v1/credit/card":{"delete":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. The saved card is no longer used at once, automatic top-up is turned off, and the card is forgotten by the payment provider within minutes. Credit already bought stays. removed is false when no card was saved; auto_top_up_turned_off says whether automatic top-up was on. The answer also carries the settings as GET /credit/settings answers them. While an automatic top-up is being charged to the card the answer is 409: try again in a few minutes. Offered while card_remove_switch_on is true. Sent with an X-Customer-Ref header it removes that customer's card only.","operationId":"deleteV1CreditCard","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditCardRemoved"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Remove the saved card and turn automatic top-up off","tags":["Credit"]}},"/v1/credit/forecast":{"get":{"description":"Needs a key with the read scope. Spend is what was charged (enquiries, search, website and register fees, less fees given back) over the last 7 and 30 days; top-ups and corrections by our team are not spend. daily_spend_micros is the higher of the 7-day and the 30-day average. runs_out_at is now plus the credit available over that rate; now when nothing is left; null when nothing was spent in 30 days. committed_micros is what running or signed campaigns still need: their companies not yet written to times unit_micros. level is critical when the credit does not pay for the next enquiry or runs out within 2 days, soon when it runs out within 7 days or the campaigns need more than is left, otherwise ok; an account billed afterwards (prepaid false) is always ok with no date. campaigns lists the five running campaigns that need the most. Sent with an X-Customer-Ref header it reads that customer's credit and campaigns only. on says whether the forecast is shown for your account yet.","operationId":"getV1CreditForecast","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditForecast"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"When credit runs out at the current pace, and what running campaigns still need","tags":["Credit"]}},"/v1/credit/invoices":{"get":{"description":"Needs a key with the read scope. Answers one page at a time. The answer carries page with limit, offset and total. An invoice is made for each top-up paid by card while the billing details are Polish (buyer_type company or individual); the details are copied at the moment of payment, so a later edit never changes it. Prices are gross: the amount paid holds the VAT, and net_cents + vat_cents = gross_cents = paid_cents. state is waiting (no number yet: it is numbered once the exchange rate of the day before the sale is published), sending (numbered, on its way to the Polish national e-invoice system, KSeF) or accepted (KSeF took it; ksef_number is its KSeF number). The VAT is also given in PLN at the National Bank of Poland's table A rate of the last business day before the sale. switch_on says whether invoices are being made now; invoices already made are always listed. Sent with an X-Customer-Ref header it reads that customer's invoices only.","operationId":"getV1CreditInvoices","parameters":[{"in":"query","name":"state","required":false,"schema":{"enum":["waiting","sending","accepted"],"type":"string"}},{"description":"Left out, it is 50.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Left out, it is 0.","in":"query","name":"offset","required":false,"schema":{"default":0,"maximum":1000000,"minimum":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoicePage"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The invoices for paid top-ups, newest first","tags":["Credit"]}},"/v1/credit/invoices/{id}":{"get":{"description":"Needs a key with the read scope. The invoice as GET /credit/invoices lists it. An invoice of another account or another customer is 404, as one that does not exist. Sent with an X-Customer-Ref header it reads that customer's invoices only.","operationId":"getV1CreditInvoicesById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Invoice"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"One invoice","tags":["Credit"]}},"/v1/credit/settings":{"get":{"description":"Needs a key with the read scope. Sent with an X-Customer-Ref header it reads that customer's settings only. card is the saved card, the one automatic top-up charges: the card the newest card top-up saved, or a card saved in its place since; null until a top-up by card, and after the card is removed. card.saved_at is when it was saved. card_change_switch_on says whether a new card can be saved in place of it now, and card_remove_switch_on whether DELETE /credit/card is offered now. Amounts here are in cents (USD), as a top-up is bought. Each feature works only while its switch_on is true; the settings save either way. auto_top_up.monthly_limit_cents is the most automatic top-up may add in one UTC month; month_topped_up_cents is what it added this month; when the next top-up would pass the ceiling it is skipped, skipped_reason says monthly_limit_reached and month_limit_reached_at says when.","operationId":"getV1CreditSettings","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditSettings"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Automatic top-up, the low-balance e-mail and the saved card","tags":["Credit"]},"patch":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. Only the fields sent are changed. A field left out stays as it is. Only the fields sent change. Turning automatic top-up on needs a saved card and both amounts, and clears an earlier failure. When available credit falls under auto_top_up_below_cents the saved card is charged auto_top_up_amount_cents, at most three times a UTC day; a refused card turns automatic top-up off and e-mails notify_email. The low-balance e-mail goes once to notify_email when available credit falls under low_balance_email_cents, and again only after it was back at or over it. auto_top_up_monthly_limit_cents caps what automatic top-up adds in one UTC month; a top-up that would pass it is skipped and the settings say so; it must be at least auto_top_up_amount_cents, and top-ups bought by hand do not count. Sent with an X-Customer-Ref header it changes that customer's settings only.","operationId":"patchV1CreditSettings","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"auto_top_up_amount_cents":{"description":"How much each automatic top-up adds, in cents: 10 USD to 5,000 USD.","maximum":500000,"minimum":1000,"type":"integer"},"auto_top_up_below_cents":{"description":"Top up when available credit falls under this, in cents.","maximum":1000000,"minimum":0,"type":"integer"},"auto_top_up_enabled":{"description":"Turn automatic top-up on or off.","type":"boolean"},"auto_top_up_monthly_limit_cents":{"description":"The most automatic top-up may add in one UTC month, in cents: 10 USD to 100,000 USD; 0 removes the limit.","maximum":10000000,"minimum":0,"type":"integer"},"low_balance_email_cents":{"description":"E-mail when available credit falls under this, in cents; 0 turns the e-mail off.","maximum":1000000,"minimum":0,"type":"integer"},"notify_email":{"description":"The one address billing e-mails go to; an empty text removes it.","maxLength":320,"type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditSettingsChanged"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Change automatic top-up and the low-balance e-mail","tags":["Credit"]}},"/v1/credit/statement":{"get":{"description":"Needs a key with the read scope. Answers one page at a time. The answer carries page with limit, offset and total. Newest first. The charges of one campaign on one UTC day are one line, with deliveries (how many enquiries it paid for); a top-up or a search fee is a line of its own; website fees, and website fees returned, are one line a day each. Amounts are in micro-dollars (1 USD = 1,000,000), currency USD. balance_after_micros is the credit left after the line, counted over the whole ledger even when kind, campaign_id, from or to narrows the page. from and to keep the lines at or after from and before to; a day line counts at its at, the last entry of that UTC day. receipt_url is the card receipt of a top-up, when the payment sent one. Sent with an X-Customer-Ref header it reads that customer's statement only.","operationId":"getV1CreditStatement","parameters":[{"in":"query","name":"kind","required":false,"schema":{"enum":["topup","charge","search_fee","website_fee","website_fee_back","registry_fee","credit_back","credit_removed"],"type":"string"}},{"in":"query","name":"campaign_id","required":false,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"Only the lines at or after this time, such as 2026-11-01T00:00:00Z.","in":"query","name":"from","required":false,"schema":{"description":"A time with its zone, like 2026-09-17T10:30:00Z or 2026-09-17T12:30:00+02:00.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"}},{"description":"Only the lines before this time. With from, from must be before to.","in":"query","name":"to","required":false,"schema":{"description":"A time with its zone, like 2026-09-17T10:30:00Z or 2026-09-17T12:30:00+02:00.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"}},{"description":"Left out, it is 50.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Left out, it is 0.","in":"query","name":"offset","required":false,"schema":{"default":0,"maximum":1000000,"minimum":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditStatementPage"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The credit statement: top-ups, and charges one line per campaign per day","tags":["Credit"]}},"/v1/credit/summary":{"get":{"description":"Needs a key with the read scope. added is the credit bought in the month; spent is every charge and fee of the month less the website fees that came back, and spent_by_kind_micros shows each kind's share (website_fee_back below zero). corrected is the credit our team gave back less the credit it removed; it is neither bought nor spent. opening_balance_micros is the balance when the month began; closing_balance_micros is the balance when it ended, or now for the month under way (complete false). Cents are rounded to the nearest cent; micros are exact. A month that has not begun is refused. Sent with an X-Customer-Ref header it reads that customer's credit only.","operationId":"getV1CreditSummary","parameters":[{"description":"The UTC month, as YYYY-MM, such as 2026-11. Leave it out for this month.","in":"query","name":"month","required":false,"schema":{"maxLength":7,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditSummary"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"One month of credit: what was added, what was spent, and the balance at its start and end","tags":["Credit"]}},"/v1/credit/transactions":{"get":{"description":"Needs a key with the read scope. Answers one page at a time. The answer carries page with limit, offset and total. Amounts are in micro-dollars (1 USD = 1,000,000): a top-up is positive, a charge negative. balance_after_micros is the credit left after that entry, counted over the whole ledger even when kind narrows the page. Sent with an X-Customer-Ref header it reads that customer's ledger only. A search_fee entry names its campaign in campaign_id, and so does a charge recorded from 2026-10-27. A website_fee is a website found from a company name; a website_fee_back returns it when that website is sent an enquiry, and names the campaign that sent it. A registry_fee is companies read from the company registry API. A credit_back is credit our team gave back when something went wrong on our side, and a credit_removed takes back credit added by mistake; neither is money paid or refunded.","operationId":"getV1CreditTransactions","parameters":[{"in":"query","name":"kind","required":false,"schema":{"enum":["topup","charge","search_fee","website_fee","website_fee_back","registry_fee","credit_back","credit_removed"],"type":"string"}},{"description":"Left out, it is 200.","in":"query","name":"limit","required":false,"schema":{"default":200,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Left out, it is 0.","in":"query","name":"offset","required":false,"schema":{"default":0,"maximum":1000000,"minimum":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditEntryPage"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The credit ledger: every top-up and charge, newest first","tags":["Credit"]}},"/v1/customer":{"get":{"description":"Needs a key with the read scope. Sent counts every attempt for this customer's campaigns, today and this month in UTC. A call made with an X-Customer-Ref header reads that customer only.","operationId":"getV1Customer","parameters":[{"description":"Which of your customers. Leave it out when the X-Customer-Ref header names the customer.","in":"query","name":"customer_ref","required":false,"schema":{"maxLength":128,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerControl"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"One customer's pause, limits and what it has sent","tags":["Customers"]},"patch":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. Only the fields sent are changed. A field left out stays as it is. Only the fields sent change. While a customer is paused, or its daily or monthly limit is used up, nothing is sent for its campaigns; they keep their place and carry on by themselves once it is resumed or the day or month turns. A limit of 0 removes it. A pause made by Contact Form Outreach can only be lifted by Contact Form Outreach.","operationId":"patchV1Customer","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"customer_ref":{"description":"Which of your customers. Leave it out when the X-Customer-Ref header names the customer.","maxLength":128,"type":"string"},"daily_cap":{"description":"The most attempts per UTC day; 0 removes the limit.","maximum":100000,"minimum":0,"type":"integer"},"monthly_cap":{"description":"The most attempts per UTC month; 0 removes the limit.","maximum":1000000,"minimum":0,"type":"integer"},"reason":{"description":"Why, for your own records.","maxLength":500,"type":"string"},"suspended":{"description":"Send true to pause this customer and false to resume it.","type":"boolean"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerControlChanged"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Pause, resume or limit one customer","tags":["Customers"]}},"/v1/digest/test":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. Queued to the e-mail address of the profile this key acts as, whatever the recipients list says. Refused while the digest is switched off for your organisation, and for 10 minutes after the last test.","operationId":"postV1DigestTest","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DigestQueued"}}},"description":"Accepted. The work is queued, and the answer names it.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Send yourself today's digest as a test","tags":["Daily digest"]}},"/v1/do-not-contact":{"get":{"description":"Needs a key with the read scope. Answers one page at a time. The answer carries page with limit, offset and total. Newest entry first unless sort says otherwise. Ties break by the company site, so pages never repeat or skip an entry. A % or _ in search is a character to find, not a wildcard.","operationId":"getV1Do-not-contact","parameters":[{"description":"Left out, it is 200.","in":"query","name":"limit","required":false,"schema":{"default":200,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Left out, it is 0.","in":"query","name":"offset","required":false,"schema":{"default":0,"maximum":1000000,"minimum":0,"type":"integer"}},{"description":"Part of the company site or of the note, capitals ignored.","in":"query","name":"search","required":false,"schema":{"maxLength":200,"type":"string"}},{"description":"Added puts the newest entry first, domain the company site A to Z, reason the reason A to Z.","in":"query","name":"sort","required":false,"schema":{"enum":["added","domain","reason"],"type":"string"}},{"description":"Turns the chosen order round. Left out, added runs newest first, domain and reason A to Z.","in":"query","name":"direction","required":false,"schema":{"enum":["asc","desc"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoNotContactPage"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Your do-not-contact list","tags":["Do-not-contact list"]},"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once.","operationId":"postV1Do-not-contact","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"domains":{"items":{"maxLength":253,"type":"string"},"maxItems":5000,"minItems":1,"type":"array"},"note":{"maxLength":2000,"type":"string"}},"required":["domains"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoNotContactAdded"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Put companies on your do-not-contact list","tags":["Do-not-contact list"]}},"/v1/do-not-contact/person":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. The value is removed from every team's extracted contacts and is never extracted again; only a hash of it is kept. A phone number is given in international form (+48...).","operationId":"postV1Do-not-contactPerson","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"kind":{"enum":["email","phone"],"type":"string"},"value":{"description":"The e-mail address, or the phone number in international form.","maxLength":254,"type":"string"}},"required":["kind","value"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PersonBarred"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Bar one person's e-mail or phone from extraction","tags":["Do-not-contact list"]}},"/v1/do-not-contact/{domain}":{"delete":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once.","operationId":"deleteV1Do-not-contactByDomain","parameters":[{"in":"path","name":"domain","required":true,"schema":{"maxLength":253,"type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DoNotContactRemoved"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Take one company off your do-not-contact list","tags":["Do-not-contact list"]}},"/v1/event-types":{"get":{"description":"Needs a key with the read scope.","operationId":"getV1Event-types","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventTypes"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Every kind of event an endpoint can ask for","tags":["Event types"]}},"/v1/events":{"get":{"description":"Needs a key with the read scope. Answers one page at a time. The answer carries page with limit, offset and total.","operationId":"getV1Events","parameters":[{"in":"query","name":"type","required":false,"schema":{"description":"One value, or several separated by commas.","type":"string"}},{"in":"query","name":"campaign_id","required":false,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"in":"query","name":"object_id","required":false,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"in":"query","name":"since","required":false,"schema":{"description":"A time with its zone, like 2026-09-17T10:30:00Z or 2026-09-17T12:30:00+02:00.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"}},{"in":"query","name":"until","required":false,"schema":{"description":"A time with its zone, like 2026-09-17T10:30:00Z or 2026-09-17T12:30:00+02:00.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"}},{"description":"Left out, it is 50.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Left out, it is 0.","in":"query","name":"offset","required":false,"schema":{"default":0,"maximum":1000000,"minimum":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventPage"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"What has happened in this organisation, newest first","tags":["Events"]}},"/v1/events/{id}":{"get":{"description":"Needs a key with the read scope.","operationId":"getV1EventsById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EventDetail"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"One thing that happened","tags":["Events"]}},"/v1/house-style":{"get":{"description":"Needs a key with the read scope. text is null when none is set. revision counts the saves. While this feature is off for your account, offered is false and nothing else is answered.","operationId":"getV1House-style","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseStyle"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The house style the AI writer follows","tags":["House style"]},"put":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. This replaces what is saved: an optional field left out is cleared, so send every value you want kept. Every change is kept (GET /house-style/history). Drafts asked for after the change use it; per-company versions are written again at their next send. When this feature is off for your account, offered is false and nothing changes.","operationId":"putV1House-style","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"text":{"description":"How your messages should read, in your words, at most 1000 characters. Empty clears it. It shapes wording and tone only: the writer's rules and checks still apply.","maxLength":1000,"type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseStyleSaved"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Set the house style the AI writer follows","tags":["House style"]}},"/v1/house-style/history":{"get":{"description":"Needs a key with the read scope. Each save with its revision number, who saved it and when. When this feature is off for your account, offered is false.","operationId":"getV1House-styleHistory","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HouseStyleHistory"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Every saved house style, newest first","tags":["House style"]}},"/v1/inbound-matches":{"get":{"description":"Needs a key with the read scope. Answers one page at a time. The answer carries page with limit, offset and total. With an X-Customer-Ref, only mail matched to that customer's campaigns. The latest matched first unless sort says otherwise. Ties break by the latest matched first and then by id, so pages never repeat or skip a mail. A % or _ in search is a character to find, not a wildcard.","operationId":"getV1Inbound-matches","parameters":[{"in":"query","name":"kind","required":false,"schema":{"enum":["replied","auto_reply","bounced","objected","unmatched"],"type":"string"}},{"description":"Left out, it is 200.","in":"query","name":"limit","required":false,"schema":{"default":200,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Left out, it is 0.","in":"query","name":"offset","required":false,"schema":{"default":0,"maximum":1000000,"minimum":0,"type":"integer"}},{"description":"Part of the company site, the sender's site, the subject, the excerpt or the campaign's name, capitals ignored. While reply text is turned on, also the sender's address and name; never the reply's text.","in":"query","name":"search","required":false,"schema":{"maxLength":200,"type":"string"}},{"description":"A user_id from GET /team: only the mail that person has, given to them or belonging to a company they look after. The word me: only the mail you have. The word none: only the mail nobody has.","in":"query","name":"owner","required":false,"schema":{"maxLength":36,"type":"string"}},{"description":"Only mail matched to this campaign.","in":"query","name":"campaign_id","required":false,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"Open is mail nobody has marked done yet; done is mail somebody has.","in":"query","name":"status","required":false,"schema":{"enum":["open","done"],"type":"string"}},{"description":"Newest puts the latest matched first, received the latest received first, domain the company site A to Z, kind the order replied, auto_reply, bounced, objected, unmatched, campaign the campaign's name A to Z.","in":"query","name":"sort","required":false,"schema":{"enum":["newest","received","domain","kind","campaign"],"type":"string"}},{"description":"Turns the chosen order round. Left out, newest and received run latest first, domain and campaign A to Z, kind replied first. Mail with no company site, or matched to no campaign, comes last either way.","in":"query","name":"direction","required":false,"schema":{"enum":["asc","desc"],"type":"string"}},{"description":"Interested or not_interested: only replies tagged so. None: only replies nobody has tagged yet. Automatic replies, bounces and objections are never tagged, so they never come with this filter.","in":"query","name":"interest","required":false,"schema":{"enum":["interested","not_interested","none"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboundMatchPage"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Mail matched to your campaigns: replies, automatic replies, bounces and objections","tags":["Reply capture"]},"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once.","operationId":"postV1Inbound-matches","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"body_text":{"description":"The reply's own text, line breaks kept, best without the earlier mail it quotes. Kept cleaned and cut to 20,000 characters, for a reply or an automatic reply only, and only while reply text is turned on.","maxLength":40000,"type":"string"},"body_truncated":{"description":"Send true when you cut the text before sending it, so the mail is shown as cut.","type":"boolean"},"excerpt":{"maxLength":500,"type":"string"},"from_name":{"description":"The name the mail shows for its sender, as it came. Kept cut to 200 characters, and only while reply text is turned on.","maxLength":1000,"type":"string"},"headers_sha256":{"maxLength":64,"type":"string"},"kind":{"enum":["replied","auto_reply","bounced","objected"],"type":"string"},"message_id":{"maxLength":998,"type":"string"},"ndr_recipient":{"maxLength":320,"type":"string"},"paused_until":{"description":"A time with its zone, like 2026-09-17T10:30:00Z or 2026-09-17T12:30:00+02:00.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"received_at":{"description":"A time with its zone, like 2026-09-17T10:30:00Z or 2026-09-17T12:30:00+02:00.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"sender":{"maxLength":320,"type":"string"},"subject":{"maxLength":200,"type":"string"}},"required":["message_id","received_at","sender","kind"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboundReported"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Hand one received mail to the reply capture","tags":["Reply capture"]}},"/v1/inbound-matches/summary":{"get":{"description":"Needs a key with the read scope.","operationId":"getV1Inbound-matchesSummary","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboundSummary"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The reply capture at a glance: switches, your mailbox connection, counts for 7 and 30 days","tags":["Reply capture"]}},"/v1/inbound-matches/{id}":{"get":{"description":"Needs a key with the read scope. With an X-Customer-Ref, only mail matched to that customer's campaigns; any other is not found. While reply text is turned on, the answer also carries the reply's own text (body_text, up to 20,000 characters); the list never does.","operationId":"getV1Inbound-matchesById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboundMatchDetail"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"One mail matched to your campaigns","tags":["Reply capture"]},"patch":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. Only the fields sent are changed. A field left out stays as it is. Send at least one change; one call may make all three, in the order tie, owner, status. Tying a reply by hand needs campaign_id and target_id together: the company must be on that campaign and have been sent something before the mail arrived, and an answer recorded from the mail before is withdrawn (withdrawn_response_id). Only mail the capture saw as a reply can be tied. Every change is kept in the audit trail and is an inbound_match.* event. While handling replies is not offered the call is refused and every mail stays open.","operationId":"patchV1Inbound-matchesById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"campaign_id":{"description":"With target_id: the campaign of the company the reply came from.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"clear_owner":{"description":"Send true to give the mail back: it is then its company owner's again, if the company has one.","type":"boolean"},"owner_user_id":{"description":"Who deals with it: a user_id from GET /team, or with an X-Customer-Ref one of that customer's persons.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"status":{"enum":["open","done"],"type":"string"},"target_id":{"description":"With campaign_id: the company the reply came from.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboundMatchChanged"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Mark a mail done or open, give it to a person, or tie a reply to a company","tags":["Reply capture"]}},"/v1/inbound-matches/{id}/interest":{"put":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. Only a reply can be tagged: never an automatic reply, a bounce or an objection. none takes the tag off. Sending the tag it already has changes nothing (changed false) and writes no event. Every change is kept in the audit trail and is an inbound_match.tagged event. Tying a reply by hand to another company keeps its tag. With an X-Customer-Ref, only mail matched to that customer's campaigns. While tagging is not available for your account the call is refused in words.","operationId":"putV1Inbound-matchesByIdInterest","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"interest":{"enum":["interested","not_interested","none"],"type":"string"}},"required":["interest"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboundInterestSet"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Tag a reply interested or not interested, or take the tag off","tags":["Reply capture"]}},"/v1/jobs/{id}":{"get":{"description":"Needs a key with the read scope.","operationId":"getV1JobsById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobDetail"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"One piece of queued work","tags":["Jobs"]}},"/v1/keyword-variants":{"get":{"description":"Needs a key with the read scope. Each variant is a keyword of its own that the search is also asked for when the screen keeps the chip; why is the one line the chip shows. The answer is empty while this feature is off for your account and for a keyword or country without rows. The keyword itself is never listed.","operationId":"getV1Keyword-variants","parameters":[{"description":"The keyword as the customer typed it, for example CNC. Case and accents are ignored.","in":"query","name":"keyword","required":true,"schema":{"maxLength":100,"type":"string"}},{"description":"The country whose language the variants are in.","in":"query","name":"country","required":true,"schema":{"description":"A two letter country code, like DE.","maxLength":2,"minLength":2,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KeywordVariants"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The local-language ways of saying a trade keyword, to offer as keyword chips before a search","tags":["Keyword variants"]}},"/v1/lists":{"get":{"description":"Needs a key with the read scope.","operationId":"getV1Lists","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedLists"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The saved lists","tags":["Saved lists"]},"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/lists/{id}.","operationId":"postV1Lists","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"description":{"maxLength":1000,"type":"string"},"name":{"maxLength":200,"type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedListSaved"}}},"description":"Made. Location points at where it is read.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"Location":{"description":"Where what was made is read.","schema":{"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Make a saved list","tags":["Saved lists"]}},"/v1/lists/{id}":{"delete":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. While this feature is on for your account, the list's company names whose websites are still being looked for (POST /lists/{id}/names) stop there, and a website found afterwards for one of them is not added and costs nothing.","operationId":"deleteV1ListsById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedListDeleted"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Delete a saved list","tags":["Saved lists"]},"get":{"description":"Needs a key with the read scope.","operationId":"getV1ListsById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedListDetail"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"One saved list","tags":["Saved lists"]},"put":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. This replaces what is saved: an optional field left out is cleared, so send every value you want kept.","operationId":"putV1ListsById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"description":{"maxLength":1000,"type":"string"},"name":{"maxLength":200,"type":"string"}},"required":["name"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedListSaved"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Rename a saved list","tags":["Saved lists"]}},"/v1/lists/{id}/campaigns":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/campaigns/{id}. While this feature is on for your account, a website found later for a company name on the list (POST /lists/{id}/names, POST /lists/{id}/register-companies) joins the campaign until it is signed off, up to 500 companies, and a list whose websites are all still being found is accepted; websites_being_found says how many still are. Off, the campaign copies the list once and a list with no website yet is refused as empty.","operationId":"postV1ListsByIdCampaigns","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"ai_writer":{"default":false,"description":"Send true to have the AI writer write each company its own subject, body and short_body from what its website says, in the campaign's language, just before its form is sent. The sender's details, every link and the closing line on how to stop being contacted are never changed, and when no version can be written the message goes as written. Preview what it writes before you sign off with POST /campaigns/{id}/ai-versions. Left out, it is false.","type":"boolean"},"country":{"description":"A two letter country code, like DE.","maxLength":2,"minLength":2,"type":"string"},"delivery_target":{"maximum":10000,"minimum":1,"type":"integer"},"exclude_known":{"description":"Send true to leave out companies already on any of your lists or campaigns, false to keep them. Absent means the default of the day.","type":"boolean"},"harvest_contacts":{"default":false,"description":"Left out, it is false.","type":"boolean"},"harvest_terms_accepted":{"default":false,"description":"Left out, it is false.","type":"boolean"},"language":{"description":"A two letter language code, like de.","maxLength":2,"minLength":2,"type":"string"},"name":{"maxLength":200,"type":"string"},"only_country":{"description":"Take only the list's companies in this country (a two-letter code, like DE), or none for only those whose country is not known. The campaign then runs in that country, and a list or website added later keeps to it. Absent: every company on the list. GET /lists/{id} says how the list spreads over countries.","maxLength":4,"minLength":2,"pattern":"^(?:[A-Za-z]{2}|[Nn][Oo][Nn][Ee])$","type":"string"},"rate_per_hour":{"maximum":500,"minimum":1,"type":"integer"},"send_enquiries":{"type":"boolean"},"skip_contacted":{"type":"boolean"},"solve_budget_cents":{"maximum":100000,"minimum":0,"type":"integer"},"template_group":{"description":"Every message saved under this group, in the order they were saved, in place of template_ids. The list is taken when you send this and kept: a message added to the group later does not join the campaign. At most twenty messages. Read while GET /offered says twenty_messages.","maxLength":100,"type":"string"},"template_id":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"template_ids":{"description":"One to five messages from GET /templates (one to twenty where GET /offered says twenty_messages), sent in turns: each company in the order the campaign sends gets the next one (A, B, C, A, B, C...) and keeps it on a retry; follow-ups keep their step's own message. Results per message at GET /campaigns/{id}/versions. Send this or template_id, not both; one id here is the same as template_id.","items":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"maxItems":20,"minItems":1,"type":"array"}},"required":["name","send_enquiries"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignMadeFromList"}}},"description":"Made. Location points at where it is read.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"Location":{"description":"Where what was made is read.","schema":{"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Start a campaign from a saved list","tags":["Saved lists"]}},"/v1/lists/{id}/domains":{"get":{"description":"Needs a key with the read scope.","operationId":"getV1ListsByIdDomains","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedListDomains"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The companies on a saved list","tags":["Saved lists"]},"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once.","operationId":"postV1ListsByIdDomains","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"domains":{"items":{"maxLength":253,"type":"string"},"maxItems":5000,"minItems":1,"type":"array"},"note":{"maxLength":500,"type":"string"}},"required":["domains"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainsAdded"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Add companies to a saved list","tags":["Saved lists"]}},"/v1/lists/{id}/domains/remove":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once.","operationId":"postV1ListsByIdDomainsRemove","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"domains":{"items":{"maxLength":253,"type":"string"},"maxItems":5000,"minItems":1,"type":"array"}},"required":["domains"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainsRemoved"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Take several companies off a saved list","tags":["Saved lists"]}},"/v1/lists/{id}/domains/{domain}":{"delete":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once.","operationId":"deleteV1ListsByIdDomainsByDomain","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"in":"path","name":"domain","required":true,"schema":{"maxLength":253,"type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainRemoved"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Take one company off a saved list","tags":["Saved lists"]}},"/v1/lists/{id}/imports":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once.","operationId":"postV1ListsByIdImports","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"campaign_id":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["campaign_id"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CampaignAddedToList"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Add a campaign's companies to a saved list","tags":["Saved lists"]}},"/v1/lists/{id}/names":{"get":{"description":"Needs a key with the read scope.","operationId":"getV1ListsByIdNames","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedListNames"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The company names on a saved list and the websites found for them","tags":["Saved lists"]},"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. A name with no website found costs nothing. While website fees are on (GET /lists/{id}/names answers fee_micros_per_website), each website found and added costs that fee, and it comes back when the website is sent an enquiry; the credit available must then cover every name sent at the fee, or nothing is added and the answer says how much to add.","operationId":"postV1ListsByIdNames","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"country":{"description":"The country of every name that does not give its own.","maxLength":2,"minLength":2,"type":"string"},"names":{"items":{"additionalProperties":false,"properties":{"city":{"description":"The town the company is in. A town, a postcode or a work email is needed.","maxLength":120,"type":"string"},"country":{"description":"The company's country, when it differs from the one given for the whole request.","maxLength":2,"minLength":2,"type":"string"},"email":{"description":"An email address of the company, when you have one: a work address names the website for free.","maxLength":254,"type":"string"},"name":{"description":"The company's name as you have it, legal form included or not. May be left out in France and Poland when register_id is given: the public register supplies the name and the town.","maxLength":300,"type":"string"},"phone":{"description":"The company's phone number, when you have one: a page that shows it proves the place.","maxLength":40,"type":"string"},"postcode":{"maxLength":20,"type":"string"},"register_id":{"description":"A company register or tax number, when you have one: a page that shows it is proof enough. France: the Siren or Siret number. Poland: KRS or NIP. In those two countries the number alone is enough.","maxLength":40,"type":"string"}},"type":"object"},"maxItems":5000,"minItems":1,"type":"array"}},"required":["names"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NamesAdded"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Add companies to a saved list by name; their websites are found for you","tags":["Saved lists"]}},"/v1/lists/{id}/overlap":{"get":{"description":"Needs a key with the read scope.","operationId":"getV1ListsByIdOverlap","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"in":"query","name":"with","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedListOverlap"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"What two lists share","tags":["Saved lists"]}},"/v1/lists/{id}/register-companies":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. Companies already on the list are skipped, so sending the same search again adds the next batch; remaining says how many are left. They are added in register-number order, at most limit at a time. Each one costs what POST /lists/{id}/names charges for a name. While this feature is on for your account, the area can be towns of the campaign towns list, given one way as GET /registers/{country}/search takes them: locations, near or territory. While this feature is on for your account, a search without locations, near or territory carries on in register-number order from where the last call of the same search on this list stopped, and a call stops after a few seconds: sent can be under limit, even 0, while remaining is above 0, so send the same search again until remaining is 0. While the matching feature is on too, a search with locations, near or territory works the same way. While this feature is on for your account, limit is how many companies with a website the list is to gain from this search: the names are looked up, and once they are and fewer than limit had a website, the next companies are queued by themselves until the list has limit of them or the register runs out; the answer's wanted, checked, kept and still_looking say where that stands, and the list's register_fill keeps saying so. While this feature is on for your account, a company costs the registry fee only once its website is found: charged says 0 companies at once, a company with no website costs nothing, and an account with too little credit for one company is still refused. While this feature is on for your account, the companies come in three rounds instead of register-number order: those with a website known to have a contact form first, then those with a website, then the rest; within a round, register-number order.","operationId":"postV1ListsByIdRegister-companies","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"activity":{"description":"Divisions (25), groups (25.6) or classes (25.62); a company matches any of them.","items":{"maxLength":5,"type":"string"},"maxItems":20,"minItems":1,"type":"array"},"any_activity":{"description":"With true, a company also matches on any of its other registered activities, not only its main one.","type":"boolean"},"country":{"description":"The country whose register is searched.","maxLength":2,"minLength":2,"type":"string"},"county":{"description":"Only companies seated in this county.","maxLength":80,"type":"string"},"limit":{"default":500,"description":"How many companies to add in this call. Left out, it is 500.","maximum":5000,"minimum":1,"type":"integer"},"locations":{"description":"Only companies found under these towns, written as PUT /campaigns/{id}/locations takes them, at most 60. Not with region, county or town.","items":{"additionalProperties":false,"properties":{"distance_km":{"maximum":1000,"minimum":0,"type":"number"},"location_code":{"maximum":2147483647,"minimum":1,"type":"integer"},"location_name":{"maxLength":200,"type":"string"}},"required":["location_code"],"type":"object"},"maxItems":60,"minItems":1,"type":"array"},"near":{"description":"The location_code of a town: only companies found under the towns within radius_km of it.","maximum":2147483647,"minimum":1,"type":"integer"},"radius_km":{"description":"The ring around near in km: 10, 25 or 50, and required with near.","maximum":50,"minimum":10,"type":"integer"},"region":{"description":"Only companies seated in this region.","maxLength":200,"type":"string"},"territory":{"description":"Only companies found under the towns of this saved territory.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"town":{"description":"Only companies seated in this town.","maxLength":120,"type":"string"}},"required":["country"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterCompaniesAdded"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Add the register companies that match a search to a saved list; their websites are found for you","tags":["Saved lists"]}},"/v1/lists/{id}/rows":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. A company already on the list is updated: a detail left out keeps its value, null or \"\" clears it. Each row is judged on its own; refusals names each refused row by its number (0 is the first), its website and why, and the other rows are saved. A key that is not a field key, or a call that would give the list more than 20 keys, refuses the whole call. With dry_run true nothing is saved and the answer says what would happen. Details about a person are never kept: a message sent through a contact form stays company to company. Nothing is charged.","operationId":"postV1ListsByIdRows","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"dry_run":{"default":false,"description":"With true, check and count without saving anything. Left out, it is false.","type":"boolean"},"rows":{"description":"The companies, 1 to 1000.","items":{"additionalProperties":false,"properties":{"city":{"description":"The company's town, as a message may use it. Left out, the stored town stays; null or \"\" clears it.","maxLength":120,"nullable":true,"type":"string"},"company_name":{"description":"The company's name, as a message may use it. Left out, the stored name stays; null or \"\" clears it.","maxLength":200,"nullable":true,"type":"string"},"domain":{"description":"The company's website, written any way a person types it. Needed on every row; a row without one is refused by number.","maxLength":253,"type":"string"},"fields":{"additionalProperties":{"maxLength":500,"nullable":true,"type":"string"},"description":"Your own details about the company, as key and text, for {{fields.key}} in a message. A key is 1 to 40 characters of a to z, 0 to 9 and _, starting with a letter, and never names a person (first_name, email, phone and the like are refused). A key left out keeps its value, a key sent as null or \"\" clears it, and fields sent as null clears them all. A list holds at most 20 keys.","maxProperties":40,"nullable":true,"type":"object"}},"type":"object"},"maxItems":1000,"minItems":1,"type":"array"}},"required":["rows"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListRowsSaved"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Add companies to a saved list with their name, town and your own details","tags":["Saved lists"]}},"/v1/mailbox":{"delete":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. The mailbox and its sealed password are removed at once; replies already found stay. removed is false when none was connected. With an X-Customer-Ref it is that customer's own mailbox. Staff only.","operationId":"deleteV1Mailbox","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailboxDisconnected"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Disconnect your mailbox","tags":["Connected mailbox"]},"get":{"description":"Needs a key with the read scope. mailbox is null until one is connected. The password is never answered. With an X-Customer-Ref it is that customer's own mailbox. Staff only.","operationId":"getV1Mailbox","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailboxRead"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Your connected mailbox for replies","tags":["Connected mailbox"]},"put":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. This replaces what is saved: an optional field left out is cleared, so send every value you want kept. The mailbox is only read: nothing is marked read, moved or deleted, and only mail from companies your campaigns contacted in the last 45 days is read past its sender. status is checking until the first sign-in, within a minute, then connected or failed with fail_code. A new mailbox replaces the one before at once. Microsoft mailboxes take no app password and are refused. The password is no part of what makes two requests the same: send a new password with a new Idempotency-Key. With an X-Customer-Ref it is that customer's own mailbox. Staff only.","operationId":"putV1Mailbox","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"address":{"description":"The mailbox's email address.","maxLength":254,"type":"string"},"host":{"description":"The mailbox's IMAP server, like imap.example.com (port 993, encrypted). Left out, it is filled in for Gmail, iCloud, Yahoo, Zoho, GMX, WEB.DE, T-Online, AOL, Fastmail, WP, o2, Interia and Onet; any other address needs it.","maxLength":253,"type":"string"},"login":{"description":"The login name, when it is not the address itself.","maxLength":254,"type":"string"},"password":{"description":"An app password made for this in the mailbox's own security settings. It is sealed the moment it arrives and is never answered or shown again.","format":"password","maxLength":256,"minLength":1,"type":"string","writeOnly":true}},"required":["address","password"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailboxConnected"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Connect your mailbox for replies, or another in its place","tags":["Connected mailbox"]}},"/v1/mailbox/check":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. A failed mailbox is tried again with the password it has. A check already waiting or running is answered as it stands. Checks and connects together are limited to 5 an hour. With an X-Customer-Ref it is that customer's own mailbox. Staff only.","operationId":"postV1MailboxCheck","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MailboxCheck"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Check your mailbox now","tags":["Connected mailbox"]}},"/v1/me":{"get":{"description":"Needs a key with the read scope.","operationId":"getV1Me","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Who this key is","tags":["Account"]}},"/v1/me/erasure":{"delete":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. Only an open request can be withdrawn; on the due date it has run.","operationId":"deleteV1MeErasure","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErasureCancelled"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Withdraw your erasure request before it runs","tags":["Account"]},"get":{"description":"Needs a key with the read scope. state is none when nothing was asked, pending until the due date, cancelled, executed with the proof, or incomplete when a run left rows behind and runs again.","operationId":"getV1MeErasure","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErasureStatus"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Where your erasure request stands","tags":["Account"]},"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. Due seven days after the request; asking again in that time answers the same request (already true). On the due date the team's keys are revoked first and then every service table is cleared, so the proof is read in the account, not through this API. Financial records, the audit chain and the do-not-contact registers stay, with person fields removed.","operationId":"postV1MeErasure","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErasureRequested"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Ask for your team's data to be erased","tags":["Account"]}},"/v1/me/export":{"get":{"description":"Needs a key with the read scope. One export an hour per team. Every table that carries the team, directly or through its parent record, ordered by its primary key, 2000 rows a page; a table with more says truncated and gives next_offset, and GET /me/export?table=<name>&offset=<next_offset> reads the following pages in the hour after the export. Columns that hold hashes, keys or internal state are left out.","operationId":"getV1MeExport","parameters":[{"description":"Read the next page of one table of your export: a name from tables in the export, sent with the offset its next_offset gave. Allowed in the hour after the export.","in":"query","name":"table","required":false,"schema":{"maxLength":64,"type":"string"}},{"description":"Where the page of table starts: the next_offset the export or the previous page gave.","in":"query","name":"offset","required":false,"schema":{"maximum":1000000,"minimum":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamExport"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Everything the service holds about your team","tags":["Account"]}},"/v1/mentions":{"get":{"description":"Needs a key with the read scope. The same mentions as GET /senders/{id}/mentions with no sender: the four about the company written to are filled at sending, those about the sender have no value and filled false, so a message using one is not sent until a sender with that value is saved. Offered while both features are on for your account; otherwise offered is false and the list is empty.","operationId":"getV1Mentions","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MentionsWithoutSender"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"What a message may mention, before a sender is saved","tags":["Mentions without a sender"]}},"/v1/notes/{id}":{"delete":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. The note is kept and marked as withdrawn, with who did it and why, and stays in the company's list with withdrawn_at set. Withdrawing it a second time is refused.","operationId":"deleteV1NotesById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"in":"query","name":"reason","required":false,"schema":{"maxLength":500,"type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteWithdrawn"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Withdraw a note","tags":["Notes"]}},"/v1/notifications/email-settings":{"get":{"description":"Needs a key with the read scope. Three short emails go to the billing contact (notify_email of PATCH /credit/settings), each once per event. research_ready: the research of a campaign is done; campaign_finished: a campaign finished; runs_out_soon: at the current pace the credit runs out within 3 days (prepaid accounts without automatic top-up). Each is on unless turned off. contact_set says whether a billing contact is saved: without one no email goes. on says whether product emails are offered for your account yet; while it is false none is sent. Sent with an X-Customer-Ref header it reads that customer's settings only.","operationId":"getV1NotificationsEmail-settings","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductEmailSettings"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Which product emails go to the billing contact","tags":["Other operations"]},"patch":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. Only the fields sent are changed. A field left out stays as it is. Only the fields sent change; send at least one. The answer is the settings as GET /notifications/email-settings answers them. While product emails are not offered for your account the call is refused in words. Sent with an X-Customer-Ref header it changes that customer's settings only.","operationId":"patchV1NotificationsEmail-settings","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"campaign_finished":{"description":"Email when a campaign finished.","type":"boolean"},"research_ready":{"description":"Email when the research of a campaign is done.","type":"boolean"},"runs_out_soon":{"description":"Email when the credit runs out within 3 days at the current pace.","type":"boolean"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductEmailSettingsChanged"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Turn product emails on or off","tags":["Other operations"]}},"/v1/notifications/emails":{"get":{"description":"Needs a key with the read scope. Each email: its kind, subject, the campaign it is about (null for runs_out_soon), its state (queued, sending, sent or failed), when it was queued and when it was sent. Newest first, up to limit. Sent with an X-Customer-Ref header it lists that customer's emails only.","operationId":"getV1NotificationsEmails","parameters":[{"description":"Left out, it is 50.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":200,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductEmails"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The product emails queued and sent, newest first","tags":["Other operations"]}},"/v1/offered":{"get":{"description":"Needs a key with the read scope. Yes-or-no answers: mentions (GET /mentions and the preview), drafts (the writer's draft and revision), variants (GET /keyword-variants), without_sender (the mentions, the preview, the draft and the revision with no sender_id), instructions and closing_lines. Each can be on or off for your account; a screen hides what is not offered. languages lists the languages the writer and the closing line take, for a language picker.","operationId":"getV1Offered","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Offered"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Which message helpers are offered","tags":["Offered helpers"]}},"/v1/opt-outs":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. For your own opt-out page, called from your server with your key, never from the visitor's browser. The ref must be your organisation's. Recording the same company twice changes nothing.","operationId":"postV1Opt-outs","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"domain":{"description":"The website of the company that objects, for example example.pl.","maxLength":253,"type":"string"},"ref":{"description":"The r value from the opt-out link in the message.","maxLength":64,"type":"string"},"scope":{"description":"Everyone, the default: no sender of the service writes to it again. Customer: only your organisation stops.","enum":["everyone","customer"],"type":"string"}},"required":["domain","ref"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OptOutRecorded"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Record that a company does not want to be contacted","tags":["Opt-outs"]}},"/v1/registers/{country}/facets":{"get":{"description":"Needs a key with the read scope. Each list counts the active companies that match the other choices, so a picker can show how many each option would bring. Activities are the divisions of the European activity classification (NACE), with English labels; classes are its four-digit codes, labelled in the register's own language. Towns come with a region or a county, the 200 with most companies. A region is named as GET /countries/{country}/regions names it; the register's own word is accepted too. While this feature is on for your account, places lists towns of the campaign towns list with their companies: the towns given by locations, near or territory, one of the three, or with a region or a county the 200 there with most companies. A company is counted under one town of the list only: its own town when the list has it, otherwise usually the town of its county with most companies.","operationId":"getV1RegistersByCountryFacets","parameters":[{"in":"path","name":"country","required":true,"schema":{"description":"A two letter country code, like DE.","maxLength":2,"minLength":2,"type":"string"}},{"description":"Count the regions, counties and towns of these activities only: divisions (25), groups (25.6) or classes (25.62).","in":"query","name":"activity","required":false,"schema":{"description":"One value, or several separated by commas.","type":"string"}},{"description":"Count the activities of this region only, and list its counties and towns.","in":"query","name":"region","required":false,"schema":{"maxLength":200,"type":"string"}},{"description":"Count the activities of this county only, and list its towns.","in":"query","name":"county","required":false,"schema":{"maxLength":80,"type":"string"}},{"description":"Count the activities of these towns only, and list each of them: location_code values from GET /countries/{country}/towns, at most 60. Not with region or county.","in":"query","name":"locations","required":false,"schema":{"description":"A whole number, or several separated by commas.","type":"string"}},{"description":"The location_code of a town: count the activities of the towns within radius_km of it only, and list them.","in":"query","name":"near","required":false,"schema":{"maximum":2147483647,"minimum":1,"type":"integer"}},{"description":"The ring around near in km: 10, 25 or 50, and required with near.","in":"query","name":"radius_km","required":false,"schema":{"maximum":50,"minimum":10,"type":"integer"}},{"description":"A saved territory: count the activities of its towns only, and list them.","in":"query","name":"territory","required":false,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterFacets"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"What a country's company register holds, to pick a search from","tags":["Company registers"]}},"/v1/registers/{country}/search":{"get":{"description":"Needs a key with the read scope. Give an activity, an area or both. While this feature is on for your account, the companies you already have are left out of count, with_website and sample unless new_to_us=false is sent, and left_out_known says how many were left out; off, nothing is left out and left_out_known is 0. Only companies still trading are counted: a company in liquidation, bankruptcy or suspension is left out. with_website counts the companies whose register entry gives a website; the others are looked for when they are added to a list. While this feature is on for your account, the area can be towns of the campaign towns list, given one way: locations, near or territory. A company is found under one town of the list only, as GET /registers/{country}/facets counts it, so towns next to each other never count it twice. While this feature is on for your account, a search by region, county or town is counted in full, with count_capped false; only any_activity with towns of the campaign towns list can still stop at 10,000, and while the matching feature is on too, that is counted in full as well.","operationId":"getV1RegistersByCountrySearch","parameters":[{"in":"path","name":"country","required":true,"schema":{"description":"A two letter country code, like DE.","maxLength":2,"minLength":2,"type":"string"}},{"description":"Divisions (25), groups (25.6) or classes (25.62); a company matches any of them.","in":"query","name":"activity","required":false,"schema":{"description":"One value, or several separated by commas.","type":"string"}},{"description":"Only companies seated in this region.","in":"query","name":"region","required":false,"schema":{"maxLength":200,"type":"string"}},{"description":"Only companies seated in this county, case and accents ignored.","in":"query","name":"county","required":false,"schema":{"maxLength":80,"type":"string"}},{"description":"Only companies seated in this town, case and accents ignored.","in":"query","name":"town","required":false,"schema":{"maxLength":120,"type":"string"}},{"description":"With true, a company also matches on any of its other registered activities, not only its main one.","in":"query","name":"any_activity","required":false,"schema":{"enum":["true","false"],"type":"string"}},{"description":"Only companies found under these towns: location_code values from GET /countries/{country}/towns, at most 60. Not with region, county or town.","in":"query","name":"locations","required":false,"schema":{"description":"A whole number, or several separated by commas.","type":"string"}},{"description":"The location_code of a town: only companies found under the towns within radius_km of it.","in":"query","name":"near","required":false,"schema":{"maximum":2147483647,"minimum":1,"type":"integer"}},{"description":"The ring around near in km: 10, 25 or 50, and required with near.","in":"query","name":"radius_km","required":false,"schema":{"maximum":50,"minimum":10,"type":"integer"}},{"description":"Only companies found under the towns of this saved territory.","in":"query","name":"territory","required":false,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"True, the default: leave out every company you already have, by register number or by website, on a campaign or a list, or have written to, and count them in left_out_known. The answer's new_to_us says whether it applied.","in":"query","name":"new_to_us","required":false,"schema":{"enum":["true","false"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterSearch"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"How many register companies match an activity and an area, and up to 20 of them","tags":["Company registers"]}},"/v1/reply-address":{"get":{"description":"Needs a key with the read scope. address is null until one is made. While Gmail's forwarding confirmation is fresh (seven days) confirmation carries its code and its google.com link, so the setup can be finished. With an X-Customer-Ref it is that customer's own address. Staff only.","operationId":"getV1Reply-address","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplyAddress"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Your team's forwarding address for replies","tags":["Reply address"]},"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. A new address stops the old one at once: mail forwarded to the old one is refused. replaced says whether there was one. With an X-Customer-Ref it is that customer's own address, and mail forwarded to it is matched to that customer's campaigns only. Staff only.","operationId":"postV1Reply-address","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReplyAddressMade"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Make your team's forwarding address for replies, or a new one in its place","tags":["Reply address"]}},"/v1/responses/{id}":{"delete":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. The record is kept and marked as taken back, so the counts stop including it. A company that objected stays on your do-not-contact list, and the answer says so: that list is kept in the portal.","operationId":"deleteV1ResponsesById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"in":"query","name":"reason","required":false,"schema":{"maxLength":500,"type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AnswerWithdrawn"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Take back a recorded answer","tags":["Recorded answers"]}},"/v1/rotation-style":{"get":{"description":"Needs a key with the read scope. text is null when none is set. revision counts the saves. While this feature is off for your account, offered is false and nothing else is answered.","operationId":"getV1Rotation-style","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RotationStyle"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The rotation style the writer follows for variants","tags":["Rotation style"]},"put":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. This replaces what is saved: an optional field left out is cleared, so send every value you want kept. Every change is kept (GET /rotation-style/history). Variants asked for after the change use it; a request already made keeps the style it was made with. When this feature is off for your account, offered is false and nothing changes.","operationId":"putV1Rotation-style","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"text":{"description":"How variants of one message should differ from each other, in your words, at most 1000 characters. Empty clears it. It shapes how variants differ only: the writer's rules and checks still apply.","maxLength":1000,"type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RotationStyleSaved"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Set the rotation style the writer follows for variants","tags":["Rotation style"]}},"/v1/rotation-style/history":{"get":{"description":"Needs a key with the read scope. Each save with its revision number, who saved it and when. When this feature is off for your account, offered is false.","operationId":"getV1Rotation-styleHistory","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RotationStyleHistory"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Every saved rotation style, newest first","tags":["Rotation style"]}},"/v1/routing-rules":{"get":{"description":"Needs a key with the read scope. With an X-Customer-Ref, that customer's own rules and decisions. A reply to a customer's campaign is only routed by that customer's rules.","operationId":"getV1Routing-rules","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutingRules"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Who a reply is handed to, and the latest decisions","tags":["Reply routing"]},"put":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. Each rule needs a kind. A round_robin rule needs handler_group of 1 to 20 people; a country, language or product_line rule needs match_value and handler_user_id; a campaign_owner rule needs neither. Every person named must be an active member of your staff. Priorities run from 1 to 50 and each is used once. An empty list removes every rule. A rule sent back with its id keeps its row, its created_at and its decisions; a rule without an id is new; a live rule left out of the list is retired. With an X-Customer-Ref the list is that customer's own and the account's rules are left alone, and the people named are the customer's own: the ids your app sends as the acting person, each once it has made a call. A campaign_owner rule then hands the reply to the person who created the campaign.","operationId":"putV1Routing-rules","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"rules":{"items":{"additionalProperties":false,"properties":{"handler_group":{"description":"The people a round_robin rule turns over.","items":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"maxItems":20,"minItems":1,"type":"array"},"handler_user_id":{"description":"The person a matching reply goes to, for a country, language or product_line rule.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"id":{"description":"The rule's id from a read: the rule keeps its row and its history. Left out, the rule is new.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"is_on":{"description":"Left out, the rule is on.","type":"boolean"},"kind":{"enum":["round_robin","country","language","product_line","campaign_owner"],"type":"string"},"match_value":{"description":"A country code, a language code or a product line, for those three kinds.","maxLength":100,"type":"string"},"priority":{"description":"Left out, the rule takes its position in the list.","maximum":50,"minimum":1,"type":"integer"}},"required":["kind"],"type":"object"},"maxItems":50,"minItems":0,"type":"array"}},"required":["rules"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RoutingRulesReplaced"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Replace your reply routing rules","tags":["Reply routing"]}},"/v1/send-windows/{country}":{"get":{"description":"Needs a key with the read scope.","operationId":"getV1Send-windowsByCountry","parameters":[{"in":"path","name":"country","required":true,"schema":{"description":"A two letter country code, like DE.","maxLength":2,"minLength":2,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendWindow"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"When a country's companies are written to","tags":["Send windows"]}},"/v1/senders":{"get":{"description":"Needs a key with the read scope. Answers one page at a time. The answer carries page with limit, offset and total. The default sender first and the rest by label unless sort says otherwise. Ties break by the label and then by id, so pages never repeat or skip a sender. A % or _ in search is a character to find, not a wildcard. shared_entries says whether messages can link to a sender with sender_id.","operationId":"getV1Senders","parameters":[{"description":"Left out, it is 50.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Left out, it is 0.","in":"query","name":"offset","required":false,"schema":{"default":0,"maximum":1000000,"minimum":0,"type":"integer"}},{"description":"Part of the label, the company, the e-mail address or the person's name, capitals ignored.","in":"query","name":"search","required":false,"schema":{"maxLength":200,"type":"string"}},{"description":"Default puts the default sender first and the rest by label A to Z, label A to Z, company the company A to Z, created the newest first.","in":"query","name":"sort","required":false,"schema":{"enum":["default","label","company","created"],"type":"string"}},{"description":"Turns the chosen order round. Left out, created runs newest first, default, label and company A to Z.","in":"query","name":"direction","required":false,"schema":{"enum":["asc","desc"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Senders"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The saved senders, the default first","tags":["Senders"]},"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/senders/{id}.","operationId":"postV1Senders","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"country_code":{"description":"The country this sender is in, from the list POST /senders/{id}/details offers. Left out, a change keeps what it was.","maxLength":2,"minLength":2,"type":"string"},"is_default":{"description":"Send true to make this the sender new messages start from. Left out, a new sender is the default only when it is the first one, and a change keeps what it was.","type":"boolean"},"label":{"description":"What the sender is called on your screens, 1 to 100 characters.","maxLength":100,"type":"string"},"sender_budget_range":{"description":"The budget a form may ask for, as `<currency>:<band>`.","enum":["EUR:lt1k","EUR:1k-5k","EUR:5k-10k","EUR:10k-50k","EUR:50k-100k","EUR:gt100k","USD:lt1k","USD:1k-5k","USD:5k-10k","USD:10k-50k","USD:50k-100k","USD:gt100k","GBP:lt1k","GBP:1k-5k","GBP:5k-10k","GBP:10k-50k","GBP:50k-100k","GBP:gt100k","PLN:lt1k","PLN:1k-5k","PLN:5k-10k","PLN:10k-50k","PLN:50k-100k","PLN:gt100k","CHF:lt1k","CHF:1k-5k","CHF:5k-10k","CHF:10k-50k","CHF:50k-100k","CHF:gt100k","SEK:lt1k","SEK:1k-5k","SEK:5k-10k","SEK:10k-50k","SEK:50k-100k","SEK:gt100k","DKK:lt1k","DKK:1k-5k","DKK:5k-10k","DKK:10k-50k","DKK:50k-100k","DKK:gt100k","NOK:lt1k","NOK:1k-5k","NOK:5k-10k","NOK:10k-50k","NOK:50k-100k","NOK:gt100k","CZK:lt1k","CZK:1k-5k","CZK:5k-10k","CZK:10k-50k","CZK:50k-100k","CZK:gt100k","HUF:lt1k","HUF:1k-5k","HUF:5k-10k","HUF:10k-50k","HUF:50k-100k","HUF:gt100k"],"type":"string"},"sender_city":{"maxLength":100,"type":"string"},"sender_company":{"maxLength":200,"type":"string"},"sender_company_id":{"maxLength":40,"type":"string"},"sender_company_id_kind":{"description":"Use `other` for a country that has no type of its own in the list.","enum":["fr_siret","fr_siren","pl_nip","pl_regon","pl_krs","de_hrb","de_steuernummer","at_steuernummer","at_fn","gb_crn","ie_cro","us_ein","ca_bn","be_kbo","nl_kvk","lu_rcs","es_nif","pt_nif","ro_cui","it_piva","it_cf","cz_ico","sk_ico","cz_dic","sk_dic","hu_adoszam","si_maticna","hr_oib","se_orgnr","no_orgnr","dk_cvr","fi_ytunnus","is_kennitala","ee_registrikood","lv_regnr","lt_kodas","bg_eik","gr_afm","ch_uid","li_uid","rs_pib","me_pib","rs_mb","ba_jib","mk_edb","al_nipt","xk_nui","md_idno","ua_edrpou","tr_vkn","tr_mersis","mx_rfc","br_cnpj","ar_cuit","co_nit","bo_nit","gt_nit","sv_nit","pe_ruc","ec_ruc","py_ruc","pa_ruc","cl_rut","uy_rut","do_rnc","hn_rtn","cr_cedula","au_abn","au_acn","nz_nzbn","za_cipc","ng_rc","ma_ice","sg_uen","hk_br","in_gstin","in_cin","my_ssm","ae_trn","sa_cr","qa_cr","kw_cr","om_cr","bh_cr","jo_cr","jp_houjin","kr_brn","tw_ubn","vn_mst","other"],"type":"string"},"sender_company_size":{"description":"How many people the sender's company employs, picked when a form asks.","enum":["1-10","11-50","51-200","201-500","501-1000","1001+"],"type":"string"},"sender_email":{"maxLength":320,"type":"string"},"sender_first_name":{"maxLength":100,"type":"string"},"sender_how_found":{"description":"How the sender found the company, picked when a form asks.","enum":["search","recommendation","trade_fair","social","advert","press","directory","other"],"type":"string"},"sender_job_title":{"maxLength":100,"type":"string"},"sender_last_name":{"maxLength":100,"type":"string"},"sender_phone":{"maxLength":50,"type":"string"},"sender_postcode":{"maxLength":20,"type":"string"},"sender_product_interest":{"description":"What the sender is interested in, 2 to 120 characters, for a form that asks.","maxLength":120,"type":"string"},"sender_region":{"maxLength":80,"type":"string"},"sender_street":{"description":"The sender's street and number, typed only into a form that asks for an address.","maxLength":200,"type":"string"},"sender_vat_id":{"maxLength":32,"type":"string"},"sender_website":{"maxLength":300,"type":"string"}},"required":["label","sender_company","sender_email"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderSaved"}}},"description":"Made. Location points at where it is read.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"Location":{"description":"Where what was made is read.","schema":{"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Save a sender","tags":["Senders"]}},"/v1/senders/{id}":{"delete":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. A message with no link keeps its copy. While a message links to this sender the delete is refused with 409, and details.messages names them.","operationId":"deleteV1SendersById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderDeleted"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Delete a sender","tags":["Senders"]},"get":{"description":"Needs a key with the read scope.","operationId":"getV1SendersById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderDetail"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"One saved sender","tags":["Senders"]},"put":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. This replaces what is saved: an optional field left out is cleared, so send every value you want kept. Linked messages follow the change in the same step. Emptying a phone, website or name a linked message fills in is refused with 409, and details.messages names each message and its fill-ins.","operationId":"putV1SendersById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"country_code":{"description":"The country this sender is in, from the list POST /senders/{id}/details offers. Left out, a change keeps what it was.","maxLength":2,"minLength":2,"type":"string"},"is_default":{"description":"Send true to make this the sender new messages start from. Left out, a new sender is the default only when it is the first one, and a change keeps what it was.","type":"boolean"},"label":{"description":"What the sender is called on your screens, 1 to 100 characters.","maxLength":100,"type":"string"},"sender_budget_range":{"description":"The budget a form may ask for, as `<currency>:<band>`.","enum":["EUR:lt1k","EUR:1k-5k","EUR:5k-10k","EUR:10k-50k","EUR:50k-100k","EUR:gt100k","USD:lt1k","USD:1k-5k","USD:5k-10k","USD:10k-50k","USD:50k-100k","USD:gt100k","GBP:lt1k","GBP:1k-5k","GBP:5k-10k","GBP:10k-50k","GBP:50k-100k","GBP:gt100k","PLN:lt1k","PLN:1k-5k","PLN:5k-10k","PLN:10k-50k","PLN:50k-100k","PLN:gt100k","CHF:lt1k","CHF:1k-5k","CHF:5k-10k","CHF:10k-50k","CHF:50k-100k","CHF:gt100k","SEK:lt1k","SEK:1k-5k","SEK:5k-10k","SEK:10k-50k","SEK:50k-100k","SEK:gt100k","DKK:lt1k","DKK:1k-5k","DKK:5k-10k","DKK:10k-50k","DKK:50k-100k","DKK:gt100k","NOK:lt1k","NOK:1k-5k","NOK:5k-10k","NOK:10k-50k","NOK:50k-100k","NOK:gt100k","CZK:lt1k","CZK:1k-5k","CZK:5k-10k","CZK:10k-50k","CZK:50k-100k","CZK:gt100k","HUF:lt1k","HUF:1k-5k","HUF:5k-10k","HUF:10k-50k","HUF:50k-100k","HUF:gt100k"],"type":"string"},"sender_city":{"maxLength":100,"type":"string"},"sender_company":{"maxLength":200,"type":"string"},"sender_company_id":{"maxLength":40,"type":"string"},"sender_company_id_kind":{"description":"Use `other` for a country that has no type of its own in the list.","enum":["fr_siret","fr_siren","pl_nip","pl_regon","pl_krs","de_hrb","de_steuernummer","at_steuernummer","at_fn","gb_crn","ie_cro","us_ein","ca_bn","be_kbo","nl_kvk","lu_rcs","es_nif","pt_nif","ro_cui","it_piva","it_cf","cz_ico","sk_ico","cz_dic","sk_dic","hu_adoszam","si_maticna","hr_oib","se_orgnr","no_orgnr","dk_cvr","fi_ytunnus","is_kennitala","ee_registrikood","lv_regnr","lt_kodas","bg_eik","gr_afm","ch_uid","li_uid","rs_pib","me_pib","rs_mb","ba_jib","mk_edb","al_nipt","xk_nui","md_idno","ua_edrpou","tr_vkn","tr_mersis","mx_rfc","br_cnpj","ar_cuit","co_nit","bo_nit","gt_nit","sv_nit","pe_ruc","ec_ruc","py_ruc","pa_ruc","cl_rut","uy_rut","do_rnc","hn_rtn","cr_cedula","au_abn","au_acn","nz_nzbn","za_cipc","ng_rc","ma_ice","sg_uen","hk_br","in_gstin","in_cin","my_ssm","ae_trn","sa_cr","qa_cr","kw_cr","om_cr","bh_cr","jo_cr","jp_houjin","kr_brn","tw_ubn","vn_mst","other"],"type":"string"},"sender_company_size":{"description":"How many people the sender's company employs, picked when a form asks.","enum":["1-10","11-50","51-200","201-500","501-1000","1001+"],"type":"string"},"sender_email":{"maxLength":320,"type":"string"},"sender_first_name":{"maxLength":100,"type":"string"},"sender_how_found":{"description":"How the sender found the company, picked when a form asks.","enum":["search","recommendation","trade_fair","social","advert","press","directory","other"],"type":"string"},"sender_job_title":{"maxLength":100,"type":"string"},"sender_last_name":{"maxLength":100,"type":"string"},"sender_phone":{"maxLength":50,"type":"string"},"sender_postcode":{"maxLength":20,"type":"string"},"sender_product_interest":{"description":"What the sender is interested in, 2 to 120 characters, for a form that asks.","maxLength":120,"type":"string"},"sender_region":{"maxLength":80,"type":"string"},"sender_street":{"description":"The sender's street and number, typed only into a form that asks for an address.","maxLength":200,"type":"string"},"sender_vat_id":{"maxLength":32,"type":"string"},"sender_website":{"maxLength":300,"type":"string"}},"required":["label","sender_company","sender_email"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderSaved"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Change a sender","tags":["Senders"]}},"/v1/senders/{id}/details":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. A form that asks for a street, postcode, town or region the sender left empty is answered with a plausible value for the country. This stores those values on the sender once, lists them in generated_fields so a screen can mark them as chosen for you, and writes them into the messages that carried this sender unchanged; sending uses them. Change any of them with PUT /senders/{id}. A sender with a town of its own keeps it and gets nothing beside it. No phone number is chosen. Calling it again fills only what is still empty. When this feature is off for your account, offered is false and nothing changes.","operationId":"postV1SendersByIdDetails","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"country":{"description":"The country the address is in. Left out: the sender's saved country. Once shared sender details are on, a sender with none is refused, choose a country. Before that: the VAT number's country, else the website's or email's domain, else PL.","maxLength":2,"minLength":2,"type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderDetailsFilled"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Fill the sender's empty address with plausible values, once","tags":["Senders"]}},"/v1/senders/{id}/mentions":{"get":{"description":"Needs a key with the read scope. Eight mentions, nine once shared sender details are on: those about the sender (sender_company, sender_email, sender_phone, sender_website, then sender_name, the first and last name joined) with the value this sender has on file and filled false when there is none, and four about the company written to (company_name, company_domain, keyword, country), filled for each company when the enquiry is sent. A screen inserts a mention as its value and stores {{key}} in the message, so nobody types braces. While this feature is off for your account, offered is false and the list is empty.","operationId":"getV1SendersByIdMentions","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Mentions"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"What a message may mention, with this sender's values","tags":["Senders"]}},"/v1/senders/{id}/usage":{"get":{"description":"Needs a key with the read scope. The messages linked to this sender, each with the fill-ins it uses, and the campaigns not finished or cancelled that reach it through their message, a version of it or a follow-up step. running_campaign_count counts those sending now. Until shared sender details are on, offered is false and the lists are empty.","operationId":"getV1SendersByIdUsage","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderUsage"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Which messages and campaigns use this sender","tags":["Senders"]}},"/v1/service-status":{"get":{"description":"Needs a key with the read scope. state is ok, or delayed when work on campaigns is paused on our side; then since, minutes, title and message say so in plain words, to show as given across the app. It clears by itself and needs nothing from you. While this feature is off for your account, offered is false and state is always ok. recent lists the delays of the last 30 days, newest first.","operationId":"getV1Service-status","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServiceStatus"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Whether work is delayed on our side","tags":["Other operations"]}},"/v1/settings":{"get":{"description":"Needs a key with the read scope. With an X-Customer-Ref, the time zone is that customer's own and digest_available is false: the daily digest belongs to the account.","operationId":"getV1Settings","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Settings"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Your organisation's time zone and daily digest settings","tags":["Settings"]},"patch":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. Only the fields sent are changed. A field left out stays as it is. The digest goes out at digest_hour in your time zone to every recipient, each of whom must be an active member of your staff, while digest_enabled is true and the digest is switched on for your organisation. With an X-Customer-Ref only time_zone can be set; it is that customer's own, and any digest field is refused.","operationId":"patchV1Settings","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"digest_enabled":{"type":"boolean"},"digest_hour":{"maximum":23,"minimum":0,"type":"integer"},"digest_recipients":{"description":"E-mail addresses of active members of your staff. Sent, it replaces the whole list; an empty list clears it.","items":{"maxLength":254,"type":"string"},"maxItems":20,"type":"array"},"time_zone":{"description":"A zone name, like Europe/Berlin.","maxLength":64,"type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsChanged"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Change your organisation's time zone or daily digest settings","tags":["Settings"]}},"/v1/site-facts":{"get":{"description":"Needs a key with the read scope. Answers one page at a time. The answer carries page with limit, offset and total.","operationId":"getV1Site-facts","parameters":[{"in":"query","name":"campaign_id","required":false,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"Left out, it is 200.","in":"query","name":"limit","required":false,"schema":{"default":200,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Left out, it is 0.","in":"query","name":"offset","required":false,"schema":{"default":0,"maximum":1000000,"minimum":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SiteFactPage"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"What the companies' sites are built with and what failed on their side","tags":["Site facts"]}},"/v1/targets/owner":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. One owner for all of them, or clear_owner true to clear it. By target_ids, a company on a cancelled campaign is skipped. By domains, the company is changed on every campaign of yours that has not been thrown away, cancelled ones included, up to 5000 rows in one call. Each id or address is answered once, in the order first sent.","operationId":"postV1TargetsOwner","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"clear_owner":{"description":"Send true to clear the owner of the companies instead of setting one.","type":"boolean"},"domains":{"description":"One to 500 web addresses. Each company is changed on every campaign of yours it is on that has not been thrown away, cancelled ones included, so it has the same owner everywhere.","items":{"maxLength":253,"type":"string"},"maxItems":500,"minItems":1,"type":"array"},"owner_user_id":{"description":"Who looks after the companies from now on: an active member of your staff (with an X-Customer-Ref, one of that customer's people). Required unless clear_owner is sent.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"target_ids":{"description":"One to 500 companies, by the target_id each has on its campaign. Required unless domains is sent; send one or the other.","items":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"maxItems":500,"minItems":1,"type":"array"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OwnersSet"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Set or clear who looks after several companies","tags":["Companies"]}},"/v1/targets/{id}/evidence":{"get":{"description":"Needs a key with the read scope. Each screenshot carries a url that works for five minutes; ask again for a fresh one. Screenshots are deleted after their retention period, and then url is null.","operationId":"getV1TargetsByIdEvidence","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompanyEvidence"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The proof kept for one delivery","tags":["Companies"]}},"/v1/team":{"get":{"description":"Needs a key with the read scope. With an X-Customer-Ref, only that customer's companies count, and the members are the people who look after at least one of them. Each number is the total of a list: GET /v1/board with owner, with reply_waiting=true or with due_before=end_of_today, and GET /v1/todos with done=false and owner.","operationId":"getV1Team","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Team"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"What each member of your staff has on their plate","tags":["Team"]}},"/v1/templates":{"get":{"description":"Needs a key with the read scope.","operationId":"getV1Templates","parameters":[{"description":"Only the messages saved under this group.","in":"query","name":"group","required":false,"schema":{"maxLength":100,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Messages"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The saved messages","tags":["Messages"]},"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/templates/{id}.","operationId":"postV1Templates","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"body":{"description":"The message, line breaks kept. Fill-ins, written exactly as {{company_name}}, {{company_domain}}, {{keyword}}, {{country}}, {{sender_company}}, {{sender_email}}, {{sender_phone}} or {{sender_website}}, are filled in for each company, and {{sender_name}}, the first and last name joined, once shared sender details are on. Any other {{...}} is refused with 422. A company whose fill-in would be empty is not sent to: keyword is empty for companies added from a list, a file or by address, and sender_phone and sender_website when you have not given them. country is the two-letter code. Where the fill-in fallback is on for your account, any fill-in may carry a fallback, {{name|fallback text}}: the words written for a company that has no value for it, so that company is sent to instead of left out (1 to 100 characters, one line, no | or braces; an empty one is refused with kind FALLBACK_EMPTY). A value that exists always wins.","maxLength":20000,"type":"string"},"fill_unimportant":{"default":false,"description":"Send true to let details you have not filled in be given plausible values. Left out, it is false.","type":"boolean"},"language_code":{"description":"The language the message is written in, two letters, like pl. Stored and returned, nothing else.","maxLength":2,"minLength":2,"type":"string"},"name":{"maxLength":200,"type":"string"},"sender_budget_range":{"description":"The budget a form may ask for, as `<currency>:<band>`.","enum":["EUR:lt1k","EUR:1k-5k","EUR:5k-10k","EUR:10k-50k","EUR:50k-100k","EUR:gt100k","USD:lt1k","USD:1k-5k","USD:5k-10k","USD:10k-50k","USD:50k-100k","USD:gt100k","GBP:lt1k","GBP:1k-5k","GBP:5k-10k","GBP:10k-50k","GBP:50k-100k","GBP:gt100k","PLN:lt1k","PLN:1k-5k","PLN:5k-10k","PLN:10k-50k","PLN:50k-100k","PLN:gt100k","CHF:lt1k","CHF:1k-5k","CHF:5k-10k","CHF:10k-50k","CHF:50k-100k","CHF:gt100k","SEK:lt1k","SEK:1k-5k","SEK:5k-10k","SEK:10k-50k","SEK:50k-100k","SEK:gt100k","DKK:lt1k","DKK:1k-5k","DKK:5k-10k","DKK:10k-50k","DKK:50k-100k","DKK:gt100k","NOK:lt1k","NOK:1k-5k","NOK:5k-10k","NOK:10k-50k","NOK:50k-100k","NOK:gt100k","CZK:lt1k","CZK:1k-5k","CZK:5k-10k","CZK:10k-50k","CZK:50k-100k","CZK:gt100k","HUF:lt1k","HUF:1k-5k","HUF:5k-10k","HUF:10k-50k","HUF:50k-100k","HUF:gt100k"],"type":"string"},"sender_city":{"maxLength":100,"type":"string"},"sender_company":{"description":"Required unless sender_id is sent.","maxLength":200,"type":"string"},"sender_company_id":{"maxLength":40,"type":"string"},"sender_company_id_kind":{"description":"Use `other` for a country that has no type of its own in the list.","enum":["fr_siret","fr_siren","pl_nip","pl_regon","pl_krs","de_hrb","de_steuernummer","at_steuernummer","at_fn","gb_crn","ie_cro","us_ein","ca_bn","be_kbo","nl_kvk","lu_rcs","es_nif","pt_nif","ro_cui","it_piva","it_cf","cz_ico","sk_ico","cz_dic","sk_dic","hu_adoszam","si_maticna","hr_oib","se_orgnr","no_orgnr","dk_cvr","fi_ytunnus","is_kennitala","ee_registrikood","lv_regnr","lt_kodas","bg_eik","gr_afm","ch_uid","li_uid","rs_pib","me_pib","rs_mb","ba_jib","mk_edb","al_nipt","xk_nui","md_idno","ua_edrpou","tr_vkn","tr_mersis","mx_rfc","br_cnpj","ar_cuit","co_nit","bo_nit","gt_nit","sv_nit","pe_ruc","ec_ruc","py_ruc","pa_ruc","cl_rut","uy_rut","do_rnc","hn_rtn","cr_cedula","au_abn","au_acn","nz_nzbn","za_cipc","ng_rc","ma_ice","sg_uen","hk_br","in_gstin","in_cin","my_ssm","ae_trn","sa_cr","qa_cr","kw_cr","om_cr","bh_cr","jo_cr","jp_houjin","kr_brn","tw_ubn","vn_mst","other"],"type":"string"},"sender_company_size":{"description":"How many people the sender's company employs, picked when a form asks.","enum":["1-10","11-50","51-200","201-500","501-1000","1001+"],"type":"string"},"sender_email":{"description":"Required unless sender_id is sent.","maxLength":320,"type":"string"},"sender_first_name":{"maxLength":100,"type":"string"},"sender_how_found":{"description":"How the sender found the company, picked when a form asks.","enum":["search","recommendation","trade_fair","social","advert","press","directory","other"],"type":"string"},"sender_id":{"description":"A saved sender from GET /senders. The message takes that sender's details exactly and follows every later change to them, and any sender_ field sent here is ignored. A PUT without it keeps the link while the values still match and drops it when they do not. Refused until shared sender details are on, see shared_entries on GET /senders.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"sender_job_title":{"maxLength":100,"type":"string"},"sender_last_name":{"maxLength":100,"type":"string"},"sender_phone":{"maxLength":50,"type":"string"},"sender_postcode":{"maxLength":20,"type":"string"},"sender_product_interest":{"description":"What the sender is interested in, 2 to 120 characters, for a form that asks.","maxLength":120,"type":"string"},"sender_region":{"maxLength":80,"type":"string"},"sender_street":{"description":"The sender's street and number, typed only into a form that asks for an address.","maxLength":200,"type":"string"},"sender_vat_id":{"maxLength":32,"type":"string"},"sender_website":{"maxLength":300,"type":"string"},"short_body":{"description":"A short version of the message, 20 to 600 characters, sent where a form's message box is too small for the body. The same fill-ins work here.","maxLength":600,"type":"string"},"subject":{"description":"The subject line. Fill-ins, written exactly as {{company_name}}, {{company_domain}}, {{keyword}}, {{country}}, {{sender_company}}, {{sender_email}}, {{sender_phone}} or {{sender_website}}, are filled in for each company, and {{sender_name}}, the first and last name joined, once shared sender details are on. Any other {{...}} is refused with 422. A company whose fill-in would be empty is not sent to: keyword is empty for companies added from a list, a file or by address, and sender_phone and sender_website when you have not given them. country is the two-letter code. Where the fill-in fallback is on for your account, any fill-in may carry a fallback, {{name|fallback text}}: the words written for a company that has no value for it, so that company is sent to instead of left out (1 to 100 characters, one line, no | or braces; an empty one is refused with kind FALLBACK_EMPTY). A value that exists always wins.","maxLength":300,"type":"string"}},"required":["name","subject","body"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageSaved"}}},"description":"Made. Location points at where it is read.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"Location":{"description":"Where what was made is read.","schema":{"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Write a message","tags":["Messages"]}},"/v1/templates/batch":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. All or nothing: each message passes the checks of POST /templates, and when one fails none is saved. The refusal then carries kind BATCH_INVALID and, in details.messages, one entry per fault with index (the place in your list, from 0), field and message. Answers offered false and saves nothing while this feature is off for your account.","operationId":"postV1TemplatesBatch","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"group":{"description":"A name kept on every message of the list, 1 to 100 characters: letters, digits, spaces, dashes, underscores and dots. A campaign can take the whole group with template_group.","maxLength":100,"type":"string"},"messages":{"description":"The messages, 1 to 50, saved in this order.","items":{"additionalProperties":false,"properties":{"body":{"description":"The enquiry text, 20 to 4,000 characters. The fill-ins of a single save work here.","maxLength":4000,"type":"string"},"language_code":{"description":"The language the message is written in, two letters, like pl.","maxLength":2,"minLength":2,"type":"string"},"name":{"description":"What the message is called on your screens, 1 to 120 characters.","maxLength":120,"type":"string"},"short_body":{"description":"A short version, 20 to 600 characters, sent where a form's message box is too small for the body.","maxLength":600,"type":"string"},"subject":{"description":"The subject line, 200 characters at most.","maxLength":200,"type":"string"}},"required":["name","body"],"type":"object"},"maxItems":50,"minItems":1,"type":"array"},"sender_id":{"description":"A saved sender from GET /senders. Every message of the list is sent as this sender and follows every later change to it.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["messages","sender_id"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagesSaved"}}},"description":"Made. The answer names it.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Write several messages in one call","tags":["Messages"]}},"/v1/templates/draft":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/templates/drafts/{id}. The writer reads the website as plain text and writes a subject (under 100 characters), a message (300 to 900 characters) and a short version (under 300) in the language given, with no invented numbers and no closing line. While this feature is on for your account it addresses the company as {{company_name}} and may write {{company_domain}} and {{country}}, filled per company at sending; off, no fill-ins. Read the draft at Location; when its state is written, change what you like and save it with POST /templates. While this feature is off for your account the ask answers offered false and nothing is written.","operationId":"postV1TemplatesDraft","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"goal":{"description":"What the message asks the companies for: meeting (a meeting or call), quote, partnership, reply (write back), visit_site (visit your website, the only goal that writes its address) or other, which needs goal_text. reply and visit_site are taken while this feature is on for your account.","enum":["meeting","quote","partnership","reply","visit_site","other"],"type":"string"},"goal_text":{"description":"In your words, what you want from the companies. Required when goal is other; welcome otherwise.","maxLength":500,"type":"string"},"instruction":{"description":"In your words, anything the writer should do: mention our ISO 9001, stress short delivery times. Read while this feature is on for your account.","maxLength":500,"type":"string"},"language":{"description":"The language to write in. Left out, the sender's country's language, else English.","maxLength":2,"minLength":2,"type":"string"},"length":{"description":"Short writes a message of 80 to 300 characters, for a small form. Left out, normal. Read while this feature is on.","enum":["normal","short"],"type":"string"},"sender_id":{"description":"The sender the message is written for, from GET /senders. Its company, email, phone and website are the facts the writer may use. Left out while this feature is on for your account, website is needed and the writer uses no sender facts; off, a call without one is 404.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"tone":{"description":"How the message sounds. Left out, formal. Read while this feature is on.","enum":["formal","friendly","direct"],"type":"string"},"use_house_style":{"description":"Left out, true: the team's house style from GET /house-style is followed. Send false to write this one without it.","type":"boolean"},"website":{"description":"The website the writer reads to learn what you do, a full address starting with http:// or https://. Left out, the sender's website.","maxLength":200,"type":"string"}},"required":["goal"],"type":"object"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DraftQueued"}}},"description":"Accepted. The work is queued, and the answer names the job that does it.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Ask the writer for a whole message, from your website and your goal","tags":["Messages"]}},"/v1/templates/drafts/{id}":{"get":{"description":"Needs a key with the read scope. state is wanted while the writer has not answered, written when subject, body and short_body are there, and failed with failed_reason when it could not write it. A draft is text to read, change and save as a message with POST /templates; nothing is sent from it.","operationId":"getV1TemplatesDraftsById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Draft"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"One draft the writer was asked for","tags":["Messages"]}},"/v1/templates/preview":{"post":{"description":"Needs a key with the read scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. Nothing is saved or sent. The sender's values are filled in where the message mentions them, an example company (Example Company, example.com) stands where the company's own facts go, and the closing line is appended once, as it is at sending. blanks lists the mentions the sender has no value for (the send refuses those, so fill them in the sender first), unknown lists any {{...}} the service does not fill (saving refuses those), and sendable is true when both are empty. body_without_closing and short_body_without_closing are the same texts without the closing line, for a screen that shows closing_line on its own. company names the list company used, when one was asked for. Where the skip count is on for your account, would_skip says how many companies of campaign_id or list_id have no value for a fill-in the texts use without a fallback, and would be left out at sending; give one of the two, not both (422), and a campaign or list not found is 404. While this feature is off for your account, offered is false and nothing else is answered.","operationId":"postV1TemplatesPreview","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"body":{"description":"The message, with or without fill-ins, line breaks kept.","maxLength":20000,"type":"string"},"campaign_id":{"description":"A campaign of yours, from GET /campaigns: would_skip counts its companies still to be sent. Read where the skip count is on for your account; not together with list_id.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"company_domain":{"description":"A company of list_id, by its domain as GET /lists/{id}/members shows it.","maxLength":253,"type":"string"},"language":{"description":"The campaign's language, for the closing line. Left out, English.","maxLength":2,"minLength":2,"type":"string"},"list_id":{"description":"With company_domain, a company of this list stands in for the example company: its name from the register, else from its domain. Read while this feature is on. Where the skip count is on for your account it may also be given alone, and would_skip counts that list's companies.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"sender_id":{"description":"The sender whose values are filled in, from GET /senders. Left out while this feature is on for your account, the four sender facts are shown as blanks; off, a call without one is 404.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"short_body":{"description":"The short version, for forms with a small message box.","maxLength":20000,"type":"string"},"subject":{"maxLength":300,"type":"string"}},"required":["body"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagePreview"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"See a message as a company would receive it, before saving it","tags":["Messages"]}},"/v1/templates/preview/test":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/templates/tests/{id}. The message is filled exactly as POST /templates/preview fills it, closing line included, its subject starts with [Test], and it is emailed only to to_email, usually within a minute; follow it at Location. Up to 20 tests a day per account (UTC day); past that, 429 with Retry-After, resets_at and retry_after_s (TEST_LIMIT_REACHED). A test is never charged, never counted as a send, and never shows in campaign results or the contacted-before check. While this feature is off for your account, 422 (TEST_SEND_NOT_OFFERED).","operationId":"postV1TemplatesPreviewTest","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"body":{"description":"The message, with or without fill-ins, line breaks kept.","maxLength":20000,"type":"string"},"company_domain":{"description":"A company of list_id, by its domain as GET /lists/{id}/members shows it.","maxLength":253,"type":"string"},"language":{"description":"The language of the closing line. Left out, the message's own language, else English.","maxLength":2,"minLength":2,"type":"string"},"list_id":{"description":"With company_domain, a company of this list is filled in instead of the example company, as in POST /templates/preview.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"sender_id":{"description":"The sender whose values are filled in, from GET /senders, as in POST /templates/preview.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"short_body":{"description":"The short version. Read for its fill-ins; the test carries the message.","maxLength":20000,"type":"string"},"subject":{"description":"The subject, with or without fill-ins. Left out, the test's subject is [Test] your message.","maxLength":300,"type":"string"},"to_email":{"description":"Where the test goes: your own sign-in address or that of an active member of your account. Any other address is 422 (TEST_TARGET_NOT_ALLOWED).","maxLength":254,"type":"string"}},"required":["to_email","body"],"type":"object"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestEmailQueued"}}},"description":"Accepted. The work is queued, and the answer names the job that does it.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Email yourself a test of a message before saving it","tags":["Messages"]}},"/v1/templates/preview/test-form":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/templates/tests/{id}. The message is filled exactly as POST /templates/preview fills it, closing line included, and sent through the contact form at form_url the way a company would get it, by the sending worker on the free path only, usually within a few minutes; follow it at Location. Its subject is not marked, so the form arrives as a company would see it. Up to 20 tests a day per account (UTC day), emails and forms together; past that, 429 with Retry-After, resets_at and retry_after_s (TEST_LIMIT_REACHED). A test is never charged, never counted as a send, and never shows in campaign results or the contacted-before check. While this feature is off for your account, 422 (TEST_SEND_NOT_OFFERED).","operationId":"postV1TemplatesPreviewTest-form","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"body":{"description":"The message, with or without fill-ins, line breaks kept.","maxLength":20000,"type":"string"},"company_domain":{"description":"A company of list_id, by its domain as GET /lists/{id}/members shows it.","maxLength":253,"type":"string"},"form_url":{"description":"The contact page the test is sent through: a page on one of your senders' websites (or the saved message's own website), or a subdomain of it. Any other page is 422 (TEST_TARGET_NOT_ALLOWED).","maxLength":2000,"type":"string"},"language":{"description":"The language of the closing line. Left out, English.","maxLength":2,"minLength":2,"type":"string"},"list_id":{"description":"With company_domain, a company of this list is filled in instead of the example company, as in POST /templates/preview.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"sender_id":{"description":"The sender whose values are filled in and given to the form, from GET /senders, as in POST /templates/preview.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"short_body":{"description":"The short version, for a form with a small message box.","maxLength":20000,"type":"string"},"subject":{"description":"The subject, with or without fill-ins, for a form that has a subject box.","maxLength":300,"type":"string"}},"required":["form_url","body"],"type":"object"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestFormQueued"}}},"description":"Accepted. The work is queued, and the answer names the job that does it.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Send a test of a message through your own contact form before saving it","tags":["Messages"]}},"/v1/templates/revise":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/templates/drafts/{id}. Fill-ins the message already uses ({{company_name}} and the others from GET /senders/{id}/mentions) are kept; the writer adds none. The revision is read at Location and saved with PUT /templates/{id} or POST /templates when you are happy with it. When this feature is off for your account, the ask answers offered false.","operationId":"postV1TemplatesRevise","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"body":{"description":"The message to change, as it is now, fill-ins included, line breaks kept.","maxLength":20000,"type":"string"},"instruction":{"description":"What to change, in your words: shorter, warmer, mention our delivery times, and so on.","maxLength":500,"type":"string"},"language":{"description":"A two letter language code, like de.","maxLength":2,"minLength":2,"type":"string"},"length":{"description":"Short writes a message of 80 to 300 characters, for a small form. Left out, normal. Read while this feature is on.","enum":["normal","short"],"type":"string"},"sender_id":{"description":"The sender, from GET /senders. Left out while this feature is on for your account, the revision belongs to no sender; off, a call without one is 404.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"short_body":{"description":"The short version as it is now. Left out, the writer writes one.","maxLength":20000,"type":"string"},"subject":{"description":"The subject as it is now, kept unless the instruction is about it.","maxLength":300,"type":"string"},"tone":{"description":"How the message sounds. Left out, formal. Read while this feature is on.","enum":["formal","friendly","direct"],"type":"string"},"use_house_style":{"description":"Left out, true: the team's house style from GET /house-style is followed. Send false to write this one without it.","type":"boolean"}},"required":["body","instruction"],"type":"object"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevisionQueued"}}},"description":"Accepted. The work is queued, and the answer names the job that does it.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Ask the writer to change a message as you say","tags":["Messages"]}},"/v1/templates/tests/{id}":{"get":{"description":"Needs a key with the read scope. channel says how the test went: email or form. state is queued until the test is handed over, then sent with sent_at; failed when it could not be sent (tries). For a form, form_url is the page, result is how the page answered (confirmed: the page said it was received; unconfirmed: sent, but the page did not say; blocked or failed: not sent), reason says why in plain words, and proof holds the page's answer. The address of an email is not answered. While both kinds of test are off for your account, 422 (TEST_SEND_NOT_OFFERED).","operationId":"getV1TemplatesTestsById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestEmail"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"One test: queued, sent or failed","tags":["Messages"]}},"/v1/templates/variants":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/templates/variants/{id}. The variants are written one after the other in the writer's queue and read at Location. Each says the same as the message in other words; fill-ins, links and the sender's details are to be kept, and the answer says whether they were. Nothing is saved as a message: save the ones you want with POST /templates or POST /templates/batch. When this feature is off for your account, offered is false and nothing is queued.","operationId":"postV1TemplatesVariants","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"count":{"default":1,"description":"How many variants, 1 to 4. Left out, 1. Left out, it is 1.","maximum":4,"minimum":1,"type":"integer"},"instruction":{"description":"What you want of these variants, in your words, at most 500 characters. It is added to the rotation style, not put in its place.","maxLength":500,"type":"string"},"language":{"description":"The language to write in, two letters. Left out, the language of the message.","maxLength":2,"minLength":2,"type":"string"},"template_id":{"description":"The saved message to write variants of, from GET /templates.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"use_house_style":{"description":"Left out, true: the team's house style from GET /house-style is followed. Send false to write these without it.","type":"boolean"},"use_rotation_style":{"description":"Left out, true: the team's rotation style from GET /rotation-style is followed. Send false to write these without it.","type":"boolean"}},"required":["template_id"],"type":"object"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VariantsQueued"}}},"description":"Accepted. The work is queued, and the answer names the job that does it.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Ask the writer for variants of a saved message","tags":["Messages"]}},"/v1/templates/variants/{id}":{"get":{"description":"Needs a key with the read scope. state is queued until the writer starts, running while a variant is still to be written, done when at least one was written, and failed when none was; failed_kind then says why, WRITING_LIMIT_REACHED when the day's writing limit stopped it. Each draft carries too_similar (it reads almost like the message or like an earlier variant of this request) and kept (whether the fill-ins, the links and the sender's details of the message are all still there). A draft is text to read, change and save; nothing is sent from it.","operationId":"getV1TemplatesVariantsById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Variants"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"One variants request and its drafts","tags":["Messages"]}},"/v1/templates/{id}":{"delete":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once.","operationId":"deleteV1TemplatesById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageDeleted"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Delete a message","tags":["Messages"]},"get":{"description":"Needs a key with the read scope.","operationId":"getV1TemplatesById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageDetail"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"One saved message","tags":["Messages"]},"put":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. This replaces what is saved: an optional field left out is cleared, so send every value you want kept.","operationId":"putV1TemplatesById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"body":{"description":"The message, line breaks kept. Fill-ins, written exactly as {{company_name}}, {{company_domain}}, {{keyword}}, {{country}}, {{sender_company}}, {{sender_email}}, {{sender_phone}} or {{sender_website}}, are filled in for each company, and {{sender_name}}, the first and last name joined, once shared sender details are on. Any other {{...}} is refused with 422. A company whose fill-in would be empty is not sent to: keyword is empty for companies added from a list, a file or by address, and sender_phone and sender_website when you have not given them. country is the two-letter code. Where the fill-in fallback is on for your account, any fill-in may carry a fallback, {{name|fallback text}}: the words written for a company that has no value for it, so that company is sent to instead of left out (1 to 100 characters, one line, no | or braces; an empty one is refused with kind FALLBACK_EMPTY). A value that exists always wins.","maxLength":20000,"type":"string"},"fill_unimportant":{"default":false,"description":"Send true to let details you have not filled in be given plausible values. Left out, it is false.","type":"boolean"},"language_code":{"description":"The language the message is written in, two letters, like pl. Stored and returned, nothing else.","maxLength":2,"minLength":2,"type":"string"},"name":{"maxLength":200,"type":"string"},"sender_budget_range":{"description":"The budget a form may ask for, as `<currency>:<band>`.","enum":["EUR:lt1k","EUR:1k-5k","EUR:5k-10k","EUR:10k-50k","EUR:50k-100k","EUR:gt100k","USD:lt1k","USD:1k-5k","USD:5k-10k","USD:10k-50k","USD:50k-100k","USD:gt100k","GBP:lt1k","GBP:1k-5k","GBP:5k-10k","GBP:10k-50k","GBP:50k-100k","GBP:gt100k","PLN:lt1k","PLN:1k-5k","PLN:5k-10k","PLN:10k-50k","PLN:50k-100k","PLN:gt100k","CHF:lt1k","CHF:1k-5k","CHF:5k-10k","CHF:10k-50k","CHF:50k-100k","CHF:gt100k","SEK:lt1k","SEK:1k-5k","SEK:5k-10k","SEK:10k-50k","SEK:50k-100k","SEK:gt100k","DKK:lt1k","DKK:1k-5k","DKK:5k-10k","DKK:10k-50k","DKK:50k-100k","DKK:gt100k","NOK:lt1k","NOK:1k-5k","NOK:5k-10k","NOK:10k-50k","NOK:50k-100k","NOK:gt100k","CZK:lt1k","CZK:1k-5k","CZK:5k-10k","CZK:10k-50k","CZK:50k-100k","CZK:gt100k","HUF:lt1k","HUF:1k-5k","HUF:5k-10k","HUF:10k-50k","HUF:50k-100k","HUF:gt100k"],"type":"string"},"sender_city":{"maxLength":100,"type":"string"},"sender_company":{"description":"Required unless sender_id is sent.","maxLength":200,"type":"string"},"sender_company_id":{"maxLength":40,"type":"string"},"sender_company_id_kind":{"description":"Use `other` for a country that has no type of its own in the list.","enum":["fr_siret","fr_siren","pl_nip","pl_regon","pl_krs","de_hrb","de_steuernummer","at_steuernummer","at_fn","gb_crn","ie_cro","us_ein","ca_bn","be_kbo","nl_kvk","lu_rcs","es_nif","pt_nif","ro_cui","it_piva","it_cf","cz_ico","sk_ico","cz_dic","sk_dic","hu_adoszam","si_maticna","hr_oib","se_orgnr","no_orgnr","dk_cvr","fi_ytunnus","is_kennitala","ee_registrikood","lv_regnr","lt_kodas","bg_eik","gr_afm","ch_uid","li_uid","rs_pib","me_pib","rs_mb","ba_jib","mk_edb","al_nipt","xk_nui","md_idno","ua_edrpou","tr_vkn","tr_mersis","mx_rfc","br_cnpj","ar_cuit","co_nit","bo_nit","gt_nit","sv_nit","pe_ruc","ec_ruc","py_ruc","pa_ruc","cl_rut","uy_rut","do_rnc","hn_rtn","cr_cedula","au_abn","au_acn","nz_nzbn","za_cipc","ng_rc","ma_ice","sg_uen","hk_br","in_gstin","in_cin","my_ssm","ae_trn","sa_cr","qa_cr","kw_cr","om_cr","bh_cr","jo_cr","jp_houjin","kr_brn","tw_ubn","vn_mst","other"],"type":"string"},"sender_company_size":{"description":"How many people the sender's company employs, picked when a form asks.","enum":["1-10","11-50","51-200","201-500","501-1000","1001+"],"type":"string"},"sender_email":{"description":"Required unless sender_id is sent.","maxLength":320,"type":"string"},"sender_first_name":{"maxLength":100,"type":"string"},"sender_how_found":{"description":"How the sender found the company, picked when a form asks.","enum":["search","recommendation","trade_fair","social","advert","press","directory","other"],"type":"string"},"sender_id":{"description":"A saved sender from GET /senders. The message takes that sender's details exactly and follows every later change to them, and any sender_ field sent here is ignored. A PUT without it keeps the link while the values still match and drops it when they do not. Refused until shared sender details are on, see shared_entries on GET /senders.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"sender_job_title":{"maxLength":100,"type":"string"},"sender_last_name":{"maxLength":100,"type":"string"},"sender_phone":{"maxLength":50,"type":"string"},"sender_postcode":{"maxLength":20,"type":"string"},"sender_product_interest":{"description":"What the sender is interested in, 2 to 120 characters, for a form that asks.","maxLength":120,"type":"string"},"sender_region":{"maxLength":80,"type":"string"},"sender_street":{"description":"The sender's street and number, typed only into a form that asks for an address.","maxLength":200,"type":"string"},"sender_vat_id":{"maxLength":32,"type":"string"},"sender_website":{"maxLength":300,"type":"string"},"short_body":{"description":"A short version of the message, 20 to 600 characters, sent where a form's message box is too small for the body. The same fill-ins work here.","maxLength":600,"type":"string"},"subject":{"description":"The subject line. Fill-ins, written exactly as {{company_name}}, {{company_domain}}, {{keyword}}, {{country}}, {{sender_company}}, {{sender_email}}, {{sender_phone}} or {{sender_website}}, are filled in for each company, and {{sender_name}}, the first and last name joined, once shared sender details are on. Any other {{...}} is refused with 422. A company whose fill-in would be empty is not sent to: keyword is empty for companies added from a list, a file or by address, and sender_phone and sender_website when you have not given them. country is the two-letter code. Where the fill-in fallback is on for your account, any fill-in may carry a fallback, {{name|fallback text}}: the words written for a company that has no value for it, so that company is sent to instead of left out (1 to 100 characters, one line, no | or braces; an empty one is refused with kind FALLBACK_EMPTY). A value that exists always wins.","maxLength":300,"type":"string"}},"required":["name","subject","body"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageSaved"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Change a message","tags":["Messages"]}},"/v1/templates/{id}/history":{"get":{"description":"Needs a key with the read scope. Each save of the name, subject, body or short version is kept with its number. restored_from says which earlier number a restore brought back. While this feature is off for your account, offered is false and no new versions are kept.","operationId":"getV1TemplatesByIdHistory","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageHistory"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Every saved version of one message, newest first","tags":["Messages"]}},"/v1/templates/{id}/restore":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. Nothing is lost: the restore is itself saved as the newest version. Campaigns that send this message use the restored text from their next send. While this feature is off, offered is false and nothing changes.","operationId":"postV1TemplatesByIdRestore","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"revision":{"description":"The version number from GET /templates/{id}/history.","maximum":1000000,"minimum":1,"type":"integer"}},"required":["revision"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageRestored"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Bring back an earlier version of a message","tags":["Messages"]}},"/v1/templates/{id}/test":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/templates/tests/{id}. The message is filled exactly as POST /templates/preview fills it, closing line included, its subject starts with [Test], and it is emailed only to to_email, usually within a minute; follow it at Location. Up to 20 tests a day per account (UTC day); past that, 429 with Retry-After, resets_at and retry_after_s (TEST_LIMIT_REACHED). A test is never charged, never counted as a send, and never shows in campaign results or the contacted-before check. While this feature is off for your account, 422 (TEST_SEND_NOT_OFFERED).","operationId":"postV1TemplatesByIdTest","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"company_domain":{"description":"A company of list_id, by its domain as GET /lists/{id}/members shows it.","maxLength":253,"type":"string"},"language":{"description":"The language of the closing line. Left out, the message's own language, else English.","maxLength":2,"minLength":2,"type":"string"},"list_id":{"description":"With company_domain, a company of this list is filled in instead of the example company, as in POST /templates/preview.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"to_email":{"description":"Where the test goes: your own sign-in address or that of an active member of your account. Any other address is 422 (TEST_TARGET_NOT_ALLOWED).","maxLength":254,"type":"string"}},"required":["to_email"],"type":"object"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestEmailQueued"}}},"description":"Accepted. The work is queued, and the answer names the job that does it.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Email yourself a test of a saved message","tags":["Messages"]}},"/v1/templates/{id}/test-form":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/templates/tests/{id}. The message is filled exactly as POST /templates/preview fills it, closing line included, and sent through the contact form at form_url the way a company would get it, by the sending worker on the free path only, usually within a few minutes; follow it at Location. Its subject is not marked, so the form arrives as a company would see it. Up to 20 tests a day per account (UTC day), emails and forms together; past that, 429 with Retry-After, resets_at and retry_after_s (TEST_LIMIT_REACHED). A test is never charged, never counted as a send, and never shows in campaign results or the contacted-before check. While this feature is off for your account, 422 (TEST_SEND_NOT_OFFERED).","operationId":"postV1TemplatesByIdTest-form","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"company_domain":{"description":"A company of list_id, by its domain as GET /lists/{id}/members shows it.","maxLength":253,"type":"string"},"form_url":{"description":"The contact page the test is sent through: a page on one of your senders' websites (or the saved message's own website), or a subdomain of it. Any other page is 422 (TEST_TARGET_NOT_ALLOWED).","maxLength":2000,"type":"string"},"language":{"description":"The language of the closing line. Left out, the message's own language, else English.","maxLength":2,"minLength":2,"type":"string"},"list_id":{"description":"With company_domain, a company of this list is filled in instead of the example company, as in POST /templates/preview.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["form_url"],"type":"object"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestFormQueued"}}},"description":"Accepted. The work is queued, and the answer names the job that does it.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Send a test of a saved message through your own contact form","tags":["Messages"]}},"/v1/territories":{"get":{"description":"Needs a key with the read scope.","operationId":"getV1Territories","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Territories"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The saved territories","tags":["Territories"]},"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/territories/{id}.","operationId":"postV1Territories","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"campaign_id":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"country":{"description":"A two letter country code, like DE.","maxLength":2,"minLength":2,"type":"string"},"locations":{"items":{"additionalProperties":false,"properties":{"distance_km":{"maximum":1000,"minimum":0,"type":"number"},"location_code":{"maximum":2147483647,"minimum":1,"type":"integer"},"location_name":{"maxLength":200,"type":"string"}},"required":["location_code"],"type":"object"},"maxItems":60,"minItems":1,"type":"array"},"name":{"maxLength":200,"type":"string"}},"required":["name","country","locations"],"type":"object"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TerritorySaved"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Save a territory","tags":["Territories"]}},"/v1/territories/estimate":{"get":{"description":"Needs a key with the read scope.","operationId":"getV1TerritoriesEstimate","parameters":[{"in":"query","name":"country","required":true,"schema":{"description":"A two letter country code, like DE.","maxLength":2,"minLength":2,"type":"string"}},{"in":"query","name":"language","required":false,"schema":{"description":"A two letter language code, like de.","maxLength":2,"minLength":2,"type":"string"}},{"in":"query","name":"keywords","required":true,"schema":{"description":"One value, or several separated by commas.","type":"string"}},{"in":"query","name":"locations","required":false,"schema":{"default":[],"description":"A whole number, or several separated by commas.","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TerritoryEstimate"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"How many companies a territory holds","tags":["Territories"]}},"/v1/territories/{id}":{"delete":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once.","operationId":"deleteV1TerritoriesById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TerritoryDeleted"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Delete a territory","tags":["Territories"]},"get":{"description":"Needs a key with the read scope.","operationId":"getV1TerritoriesById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TerritoryDetail"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"One saved territory","tags":["Territories"]}},"/v1/todos":{"get":{"description":"Needs a key with the read scope. Answers one page at a time. The answer carries page with limit, offset and total. With done=false and owner, the total is that person's todos_open in GET /v1/team.","operationId":"getV1Todos","parameters":[{"in":"query","name":"done","required":false,"schema":{"enum":["true","false"],"type":"string"}},{"description":"Left out, it is 200.","in":"query","name":"limit","required":false,"schema":{"default":200,"maximum":500,"minimum":1,"type":"integer"}},{"description":"Left out, it is 0.","in":"query","name":"offset","required":false,"schema":{"default":0,"maximum":1000000,"minimum":0,"type":"integer"}},{"description":"A user_id from GET /team: only what belongs to the companies that person looks after. The word none: only the companies nobody looks after.","in":"query","name":"owner","required":false,"schema":{"maxLength":36,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowUpPage"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The manual follow-ups that fell due","tags":["Manual follow-ups"]}},"/v1/todos/{id}/done":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once.","operationId":"postV1TodosByIdDone","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"note":{"maxLength":500,"type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowUpDone"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Mark a manual follow-up done","tags":["Manual follow-ups"]}},"/v1/url-tests":{"delete":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once.","operationId":"deleteV1Url-tests","parameters":[{"in":"query","name":"keep","required":false,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddressChecksDiscarded"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Clear the address checks","tags":["Address checks"]}},"/v1/webhook-deliveries/{id}":{"get":{"description":"Needs a key with the webhooks scope.","operationId":"getV1Webhook-deliveriesById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryDetail"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"One event on its way to one endpoint","tags":["Webhook deliveries"]}},"/v1/webhook-deliveries/{id}/resend":{"post":{"description":"Needs a key with the webhooks scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/webhook-deliveries/{id}.","operationId":"postV1Webhook-deliveriesByIdResend","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryQueued"}}},"description":"Accepted. The work is queued, and the answer names the job that does it.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Send one event to its endpoint again","tags":["Webhook deliveries"]}},"/v1/webhook-endpoints":{"get":{"description":"Needs a key with the webhooks scope.","operationId":"getV1Webhook-endpoints","parameters":[],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoints"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"The endpoints this organisation is told through","tags":["Webhooks"]},"post":{"description":"Needs a key with the webhooks scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/webhook-endpoints/{id}.","operationId":"postV1Webhook-endpoints","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"description":{"maxLength":200,"type":"string"},"event_types":{"items":{"maxLength":60,"type":"string"},"maxItems":100,"minItems":1,"type":"array"},"url":{"maxLength":2048,"type":"string"}},"required":["url","event_types"],"type":"object"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointMade"}}},"description":"Made. Location points at where it is read.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"Location":{"description":"Where what was made is read.","schema":{"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Add an endpoint to be told through","tags":["Webhooks"]}},"/v1/webhook-endpoints/{id}":{"delete":{"description":"Needs a key with the webhooks scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once.","operationId":"deleteV1Webhook-endpointsById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointDeleted"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Delete an endpoint","tags":["Webhooks"]},"get":{"description":"Needs a key with the webhooks scope.","operationId":"getV1Webhook-endpointsById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointDetail"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"One endpoint","tags":["Webhooks"]},"patch":{"description":"Needs a key with the webhooks scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. Only the fields sent are changed. A field left out stays as it is.","operationId":"patchV1Webhook-endpointsById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"description":{"maxLength":200,"type":"string"},"enabled":{"type":"boolean"},"event_types":{"items":{"maxLength":60,"type":"string"},"maxItems":100,"minItems":1,"type":"array"},"url":{"maxLength":2048,"type":"string"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointChanged"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Change an endpoint, or turn it on or off","tags":["Webhooks"]}},"/v1/webhook-endpoints/{id}/deliveries":{"get":{"description":"Needs a key with the webhooks scope. Answers one page at a time. The answer carries page with limit, offset and total.","operationId":"getV1Webhook-endpointsByIdDeliveries","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"in":"query","name":"state","required":false,"schema":{"description":"One or more of: pending, sending, delivered, failed, separated by commas.","type":"string"}},{"description":"Left out, it is 50.","in":"query","name":"limit","required":false,"schema":{"default":50,"maximum":200,"minimum":1,"type":"integer"}},{"description":"Left out, it is 0.","in":"query","name":"offset","required":false,"schema":{"default":0,"maximum":1000000,"minimum":0,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryPage"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"What has been sent to one endpoint, newest first","tags":["Webhooks"]}},"/v1/webhook-endpoints/{id}/resend-failed":{"post":{"description":"Needs a key with the webhooks scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/webhook-endpoints/{id}/deliveries.","operationId":"postV1Webhook-endpointsByIdResend-failed","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"since":{"description":"A time with its zone, like 2026-09-17T10:30:00Z or 2026-09-17T12:30:00+02:00.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"}},"required":["since"],"type":"object"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResendQueued"}}},"description":"Accepted. The work is queued, and the answer names the job that does it.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Send again everything that failed to an endpoint since a time","tags":["Webhooks"]}},"/v1/webhook-endpoints/{id}/rotate-secret":{"post":{"description":"Needs a key with the webhooks scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once.","operationId":"postV1Webhook-endpointsByIdRotate-secret","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"overlap_hours":{"maximum":72,"minimum":0,"type":"integer"}},"type":"object"}}},"required":false},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSecretRotated"}}},"description":"The answer.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Give an endpoint a new secret, with the old one honoured for a while","tags":["Webhooks"]}},"/v1/webhook-endpoints/{id}/test":{"post":{"description":"Needs a key with the webhooks scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/webhook-deliveries/{id}.","operationId":"postV1Webhook-endpointsByIdTest","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTestQueued"}}},"description":"Accepted. The work is queued, and the answer names the job that does it.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Send one test event to an endpoint","tags":["Webhooks"]}},"/v1/websites":{"post":{"description":"Needs a key with the write scope. Send an Idempotency-Key header. A retry with the same key is given the first answer, and the work is done once. What this makes is read at /v1/websites/{id}. The search is queued and read at Location. A website found costs the website fee (GET /credit names it), once per website per customer; a name with no website found costs nothing, and a search the credit cannot pay for is refused before it starts. Asked again for the same name and place, the same search answers (existing true) and nothing more is charged; a name not found may be asked again after 30 days. Nothing is added to a list and nothing is sent. When this feature is off for your account, offered is false and nothing is queued.","operationId":"postV1Websites","parameters":[{"description":"A value you can repeat, such as an id, 8 to 255 plain characters. Send the same one again when you retry, and the first answer is given back instead of the work being done twice.","in":"header","name":"Idempotency-Key","required":true,"schema":{"maxLength":255,"minLength":8,"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"city":{"description":"The town the company is in. A town, a postcode or a work email is needed, so the website can be checked against the company.","maxLength":120,"type":"string"},"country":{"description":"The country the company is in, two letters.","maxLength":2,"minLength":2,"type":"string"},"email":{"description":"An email address of the company, when you have one: a work address names the website.","maxLength":254,"type":"string"},"name":{"description":"The company's name as you have it, legal form included or not.","maxLength":300,"type":"string"},"postcode":{"description":"The company's postcode.","maxLength":20,"type":"string"}},"required":["name","country"],"type":"object"}}},"required":true},"responses":{"202":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebsiteSearchQueued"}}},"description":"Accepted. The work is queued, and the answer names the job that does it.","headers":{"Idempotency-Replayed":{"description":"true when this answer is the stored one from an earlier request with the same Idempotency-Key.","schema":{"enum":["true"],"type":"string"}},"X-Original-Request-ID":{"description":"On a replay, the request id of the call that did the work.","schema":{"type":"string"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"409":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An earlier request with this Idempotency-Key is still running (Retry-After says when to ask again), or that key was already used for a different request. Also answered when the state of things says no; then error.kind, when present, names the case for a program: LIST_CHANGED (the list changed after it was reviewed or signed for: read it again, review, sign again) or LIST_SIGNED (the list has been signed for and is closed to changes: start a new campaign).","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"413":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The body is larger than 256 KB.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"415":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Send the body as application/json.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"Find the website of a company from its name","tags":["Website finder"]}},"/v1/websites/{id}":{"get":{"description":"Needs a key with the read scope. state is queued until the search starts, working while it runs, found when website holds the answer, and not_found when the company was looked for and no website could be confirmed. fee_micros is what it cost: the website fee once the website is found, 0 before that and 0 when none is found. Most searches end within a few minutes. When this feature is off for your account, offered is false.","operationId":"getV1WebsitesById","parameters":[{"in":"path","name":"id","required":true,"schema":{"example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebsiteSearch"}}},"description":"The answer.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request could not be read. The answer names the parameter at fault and what it must be.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"401":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"No key was sent, or the key is not valid, or it has expired.","headers":{"WWW-Authenticate":{"description":"Bearer, with the realm this API answers for.","schema":{"type":"string"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"403":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"This key is not allowed to do that.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"There is no such thing, or it belongs to another organisation.","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"422":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was understood and refused. The answer says why, in words you can act on. error.kind, when present, names the case for a program: NOT_REMOVED_BY_REVIEWER (the company was not taken off by a reviewer, so there is nothing to put back) or SENDER_LINK_NOT_OFFERED (save the message without a saved sender).","headers":{"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"429":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Too many requests for this key, or too many keys the service has never seen from one address (then without the X-RateLimit headers). Retry-After says how many seconds to wait.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"500":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Our fault. Quote X-Request-ID to support. Whether the work was done is not promised; a write is safe to send again with the same Idempotency-Key.","headers":{"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}},"503":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The service could not answer just now. Nothing was done; wait Retry-After seconds and send the same request again.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"X-RateLimit-Limit":{"description":"How many requests this key may make in the current one-minute window.","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"How many of them are left.","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the window starts again.","schema":{"type":"integer"}},"X-Request-ID":{"description":"The request's id, the one to quote to support. A caller's own x-request-id of 8 to 64 safe characters is kept.","schema":{"type":"string"}}}}},"summary":"One website search","tags":["Website finder"]}}},"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Your API key, made in the app under Settings, API keys."}},"schemas":{"Account":{"description":"Who this key acts for.","properties":{"acting_as":{"description":"The person the key acts as.","properties":{"id":{"description":"Their id.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"kind":{"description":"person when the call named one with Acting-Person, key_owner otherwise.","type":"string"},"name":{"description":"Their name.","type":"string"}},"required":["id","name","kind"],"type":"object"},"key":{"description":"The key itself.","properties":{"expires_at":{"description":"When it expires.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"id":{"description":"Its id.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"name":{"description":"Its name.","type":"string"},"prefix":{"description":"The first characters of the key, to tell keys apart.","type":"string"},"rate_limit_per_minute":{"description":"How many calls per minute it may make.","type":"integer"},"scopes":{"description":"What the key may do.","items":{"type":"string"},"type":"array"}},"required":["id","name","prefix","scopes","expires_at","rate_limit_per_minute"],"type":"object"},"organization":{"description":"The organisation the key belongs to.","properties":{"id":{"description":"Its id.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"name":{"description":"Its name.","type":"string"}},"required":["id","name"],"type":"object"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"role":{"description":"The team role of the person this call acts for, in the organisation named by X-Customer-Ref. Null for a key that is not the app's own, and for a person not on that team. viewer: reads, and sees the balance. member: also changes campaigns, approves and sends. admin: also billing, API keys, webhooks, the mailbox, the organisation's settings and the team. owner: also manages admins, and asks for or cancels an erasure.","enum":["viewer","member","admin","owner"],"nullable":true,"type":"string"},"role_enforced":{"description":"Whether the role is enforced now. When false a call is not refused for its role yet; role and scopes still say what will be allowed.","type":"boolean"},"scopes":{"description":"What this call may do: for the app's own key, the key's scopes that the role may use (empty when the person is not on the team); for any other key, the key's scopes.","items":{"type":"string"},"type":"array"}},"required":["organization","acting_as","key","role","scopes","role_enforced","request_id"],"type":"object"},"AddressChecksDiscarded":{"description":"The single-address checks that were discarded.","properties":{"discarded":{"description":"How many were discarded.","minimum":0,"type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["discarded","request_id"],"type":"object"},"AiVersionPage":{"description":"A page of the AI writer's versions of a campaign's message, one per company and step.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"items":{"description":"The versions on this page, the newest asked for first.","items":{"description":"The AI writer's version of the message for one company.","properties":{"body":{"description":"The message the AI writer wrote, the closing line included. Null when no version was written.","nullable":true,"type":"string"},"company_name":{"description":"The company's name as the message gives it.","nullable":true,"type":"string"},"domain":{"description":"The company site.","example":"example.com","type":"string"},"language":{"description":"The language the version is written in: the campaign's language.","example":"de","type":"string"},"reason":{"description":"Why the company gets the message as written, or why a new version is written before sending. Null when it is waiting, written or sent.","nullable":true,"type":"string"},"sent_at":{"description":"When the company was sent it. Null until then.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"short_body":{"description":"The short version, for a form whose message box is too small for the body. Null when no version was written or the message has no short version.","nullable":true,"type":"string"},"state":{"$ref":"#/components/schemas/AiVersionState"},"step":{"description":"Which step of the sequence the version is for: 1 is the first message.","minimum":1,"type":"integer"},"subject":{"description":"The subject the AI writer wrote. Null when no version was written.","nullable":true,"type":"string"},"target_id":{"description":"The company on the campaign, as GET /campaigns/{id}/targets names it.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"written_at":{"description":"When it was written.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"}},"required":["target_id","domain","company_name","language","step","state","reason","subject","body","short_body","written_at","sent_at"],"type":"object"},"type":"array"},"limit":{"description":"How many rows were asked for at most.","type":"integer"},"offset":{"description":"How many rows were skipped.","type":"integer"},"page":{"$ref":"#/components/schemas/Page"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"total":{"description":"How many rows there are in all.","minimum":0,"type":"integer"}},"required":["campaign_id","items","total","limit","offset","request_id","page"],"type":"object"},"AiVersionState":{"description":"Where the AI writer's version of the message for one company is, for a send made now. waiting: asked for, not written yet. written: written, and what the company gets. outdated: the message, its closing line or the language changed since it was written, so a new version is written just before sending. failed: no version could be written, so the company gets the message as written; reason says why. sent: the company was sent this version.","enum":["waiting","written","outdated","failed","sent"],"type":"string"},"AiVersionsQueued":{"allOf":[{"$ref":"#/components/schemas/Job"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"AnswerRecorded":{"description":"The answer that was recorded. The last three fields come only with a new record.","properties":{"already":{"description":"Whether the same answer was recorded before, in which case nothing changed.","type":"boolean"},"do_not_contact":{"description":"Whether the domain was put on your do-not-contact list.","type":"boolean"},"domain":{"description":"The company site.","example":"example.com","type":"string"},"kind":{"$ref":"#/components/schemas/ResponseKind"},"occurred_at":{"description":"When the company answered.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"response_id":{"description":"The answer.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"routing":{"additionalProperties":true,"description":"Who the answer was handed to, when routing is on.","nullable":true,"type":"object"}},"required":["already","response_id","kind","domain","request_id"],"type":"object"},"AnswerWithdrawn":{"description":"The answer that was withdrawn.","properties":{"already":{"description":"Whether it was withdrawn before, in which case nothing changed.","type":"boolean"},"do_not_contact_kept":{"description":"Whether the domain stays on your do-not-contact list.","type":"boolean"},"domain":{"description":"The company site.","example":"example.com","type":"string"},"kind":{"$ref":"#/components/schemas/ResponseKind"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"response_id":{"description":"The answer.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["already","response_id","kind","domain","do_not_contact_kept","request_id"],"type":"object"},"ApiCallPage":{"description":"A page of the organisation's call log.","properties":{"calls":{"description":"The calls on this page, newest first.","items":{"description":"One call a key made.","properties":{"at":{"description":"When the call was made.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"duration_ms":{"description":"How long the call took inside the service, in milliseconds.","minimum":0,"nullable":true,"type":"integer"},"key":{"description":"The key that made the call.","properties":{"id":{"description":"The key.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"name":{"description":"The key's name.","nullable":true,"type":"string"},"prefix":{"description":"The start of the key, as shown in Settings.","nullable":true,"type":"string"}},"required":["id","prefix","name"],"type":"object"},"ok":{"description":"Whether it worked.","type":"boolean"},"operation":{"description":"The operation called, as the reference names it. Null for one that does not exist.","nullable":true,"type":"string"},"reason":{"description":"Why not, as a short code. Null when it worked.","nullable":true,"type":"string"},"request_id":{"description":"The id to quote to support.","example":"req_k3x9q2ab_7hd4pw","nullable":true,"type":"string"}},"required":["request_id","at","operation","ok","reason","duration_ms","key"],"type":"object"},"type":"array"},"limit":{"description":"How many rows were asked for at most.","type":"integer"},"offset":{"description":"How many rows were skipped.","type":"integer"},"page":{"$ref":"#/components/schemas/Page"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"total":{"description":"How many rows there are in all.","minimum":0,"type":"integer"}},"required":["calls","total","limit","offset","request_id","page"],"type":"object"},"AssistBudgetSet":{"description":"The assistance budget as it is now.","properties":{"assist_budget_cents":{"description":"How much may be spent on paid assistance. Whole US cents.","minimum":0,"type":"integer"},"assist_spent_cents":{"description":"How much was spent on it. Whole US cents.","minimum":0,"type":"integer"},"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["campaign_id","assist_budget_cents","assist_spent_cents","request_id"],"type":"object"},"AttemptOutcome":{"description":"How a send attempt ended. confirmed: the site confirmed the send. unconfirmed: sent, no confirmation seen. blocked: the site stopped it. failed: it did not finish.","enum":["confirmed","unconfirmed","blocked","failed"],"type":"string"},"BillingDetails":{"allOf":[{"$ref":"#/components/schemas/BillingDetailsDetail"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"BillingDetailsDetail":{"description":"The billing details invoices are made out to, and the EU VAT number check, for your account or for the customer named by X-Customer-Ref.","properties":{"customer_ref":{"description":"The customer these details belong to. Null for the account itself.","nullable":true,"type":"string"},"details":{"description":"The saved details. Null until they are saved.","nullable":true,"properties":{"address_line1":{"description":"Street and number.","type":"string"},"address_line2":{"description":"A second address line.","nullable":true,"type":"string"},"buyer_type":{"description":"Who buys. Null when it was not given outside Poland. company: a company, invoiced with its tax ID. individual: a private person, invoiced without a tax ID.","enum":["company","individual"],"nullable":true,"type":"string"},"city":{"description":"The town.","type":"string"},"country_code":{"description":"The country the company is registered in.","example":"DE","pattern":"^[A-Z]{2}$","type":"string"},"legal_name":{"description":"The company name as it should appear on an invoice.","type":"string"},"postal_code":{"description":"The postal code.","nullable":true,"type":"string"},"region":{"description":"The region, state or province.","nullable":true,"type":"string"},"tax_id":{"description":"The tax ID as saved: upper case, without spaces, dots or dashes. In an EU country it starts with the country prefix (EL for Greece). Null when none was given.","nullable":true,"type":"string"},"tax_id_check":{"description":"The EU VAT number check of tax_id.","properties":{"checked_at":{"description":"When the EU service last gave a definite answer. Null before that.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"next_check_at":{"description":"When the number is tried next, while state is pending or unavailable. Null otherwise, and once a number has been tried for 30 days.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"registered_name":{"description":"The name the EU register holds for a valid number, when it gives one.","nullable":true,"type":"string"},"state":{"description":"Where the check stands. none: no tax ID was given. not_checked: a tax ID outside the EU, which is not checked. pending: an EU VAT number waiting for the EU service, usually a minute. valid: the EU service knows the number. invalid: the EU service does not know the number; save the details again with the right one. unavailable: the EU service did not answer after several tries; it is tried again once a day, see next_check_at.","enum":["none","not_checked","pending","valid","invalid","unavailable"],"type":"string"}},"required":["state","checked_at","registered_name","next_check_at"],"type":"object"},"updated_at":{"description":"When the details were last saved.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"}},"required":["legal_name","address_line1","address_line2","postal_code","city","region","country_code","buyer_type","tax_id","tax_id_check","updated_at"],"type":"object"},"reverse_charge":{"description":"True only for a valid EU VAT number of a country other than Poland: then an invoice carries no Polish VAT and says reverse charge.","type":"boolean"},"switch_on":{"description":"Whether billing details can be saved at all. Off, PUT is refused.","type":"boolean"}},"required":["customer_ref","switch_on","details","reverse_charge"],"type":"object"},"BillingDetailsSaved":{"allOf":[{"$ref":"#/components/schemas/BillingDetailsDetail"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"BlockReasons":{"description":"Why companies on a campaign were not delivered.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"campaign_state":{"$ref":"#/components/schemas/CampaignState"},"funnel":{"description":"The funnel, as counts.","properties":{"checked":{"description":"Sites read.","minimum":0,"type":"integer"},"confirmed":{"description":"Sends the site confirmed.","minimum":0,"type":"integer"},"found":{"description":"Companies found.","minimum":0,"type":"integer"},"not_contactable":{"description":"No form, excluded or asked not to be written to.","minimum":0,"type":"integer"},"not_delivered":{"description":"Blocked or failed.","minimum":0,"type":"integer"},"ready":{"description":"A contact form read and ready.","minimum":0,"type":"integer"},"ready_form_not_seen":{"description":"Ready, but the form was never shown to a person.","minimum":0,"type":"integer"},"replied":{"description":"Companies that wrote back.","minimum":0,"type":"integer"},"sent":{"description":"Enquiries sent.","minimum":0,"type":"integer"},"waiting":{"description":"Sites not read yet.","minimum":0,"type":"integer"}},"required":["found","waiting","checked","not_contactable","ready","ready_form_not_seen","not_delivered","sent","confirmed","replied"],"type":"object"},"groups":{"description":"The reasons, grouped, biggest group first.","items":{"description":"One group of reasons.","properties":{"codes":{"description":"The reasons in the group, most common first.","items":{"description":"One reason.","properties":{"code":{"description":"The reason code.","nullable":true,"type":"string"},"example":{"description":"One example of what the site said.","nullable":true,"type":"string"},"fix_by":{"description":"Who can fix it.","nullable":true,"type":"string"},"n":{"description":"How many companies gave it.","minimum":0,"type":"integer"},"stage":{"description":"Where in the run it happened.","nullable":true,"type":"string"}},"required":["code","stage","fix_by","n","example"],"type":"object"},"type":"array"},"group":{"$ref":"#/components/schemas/ReasonGroup"},"n":{"description":"How many companies fall in it.","minimum":0,"type":"integer"}},"required":["group","n","codes"],"type":"object"},"type":"array"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"total":{"description":"How many companies have a reason.","minimum":0,"type":"integer"}},"required":["campaign_id","campaign_state","funnel","total","groups","request_id"],"type":"object"},"Board":{"description":"A page of the board: one row per company across your campaigns, with where it stands.","properties":{"counts":{"additionalProperties":{"minimum":0,"type":"integer"},"description":"How many companies are in each status, over the whole board narrowed by campaign_id and country, before the other filters.","type":"object"},"page":{"$ref":"#/components/schemas/Page"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"rows":{"description":"The companies on this page, the most recently active first.","items":{"description":"One company on the board.","properties":{"campaign_count":{"description":"How many campaigns it is on.","minimum":0,"type":"integer"},"campaigns":{"description":"The names of up to five of those campaigns.","items":{"type":"string"},"type":"array"},"country":{"description":"Its country, two capital letters: the register country of the name it was found from on the list its campaign came from, else the country of its earliest campaign. Null when neither is known.","example":"DE","nullable":true,"pattern":"^[A-Z]{2}$","type":"string"},"domain":{"description":"The company site.","example":"example.com","type":"string"},"first_sent":{"description":"When the first enquiry went out.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"last_reply":{"description":"When the latest reply arrived.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"last_sent":{"description":"When the latest enquiry went out.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"next_touch":{"description":"When the next follow-up is due.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"notes":{"description":"How many notes your staff wrote about it.","minimum":0,"type":"integer"},"owner_name":{"description":"Their name.","nullable":true,"type":"string"},"owner_user_id":{"description":"Who looks after it.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"paused_until":{"description":"Until when its sequence is paused.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"replies":{"description":"How many replies it sent.","minimum":0,"type":"integer"},"reply_waiting":{"description":"Whether it replied and got no note since.","type":"boolean"},"sends":{"description":"How many enquiries went out to it.","minimum":0,"type":"integer"},"status":{"$ref":"#/components/schemas/BoardStatus"}},"required":["domain","status","owner_user_id","owner_name","first_sent","last_sent","sends","next_touch","campaign_count","campaigns","replies","last_reply","paused_until","notes","reply_waiting","country"],"type":"object"},"type":"array"},"total":{"description":"How many companies match the filter.","minimum":0,"type":"integer"}},"required":["rows","total","counts","request_id","page"],"type":"object"},"BoardStatus":{"description":"Where you stand with a company, derived across all your campaigns. new: found, nothing sent yet. contacted: a message went out and nothing came back yet. follow_up_due: a follow-up step has fallen due. replied: the company answered. auto_reply: only an automatic reply came back. bounced: the message could not be delivered. objected: the company asked not to be contacted. paused: the sequence is on hold for a while. excluded: on your do-not-contact list.","enum":["new","contacted","follow_up_due","replied","auto_reply","bounced","objected","paused","excluded"],"type":"string"},"Campaign":{"description":"A campaign.","properties":{"activity":{"description":"The PKD codes of the companies wanted; empty when the campaign has no trade. With a trade the campaign is filled from the company register first.","items":{"type":"string"},"type":"array"},"ai_writer":{"description":"Whether the AI writer writes each company its own version of the message just before its form is sent.","type":"boolean"},"already_contacted":{"description":"How many companies the search left out as written to before.","minimum":0,"type":"integer"},"already_known":{"description":"How many companies the search left out as already on one of your lists or campaigns.","minimum":0,"type":"integer"},"assist_budget_cents":{"description":"How much may be spent on paid assistance. Whole US cents.","minimum":0,"type":"integer"},"assist_spent_cents":{"description":"How much was spent on paid assistance. Whole US cents.","minimum":0,"type":"integer"},"attested_at":{"description":"When the list was signed off.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"copied_from_campaign_id":{"description":"The campaign this one was copied from, recorded while copy modes are on for your account. Null otherwise, and when that campaign was deleted.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"country":{"description":"The campaign's country, two capital letters: the one it keeps to (only_country), else the one it runs in. GET /campaigns?country= filters on it.","example":"DE","nullable":true,"pattern":"^[A-Z]{2}$","type":"string"},"country_code":{"description":"The country searched.","example":"DE","pattern":"^[A-Z]{2}$","type":"string"},"created_at":{"description":"When it was made.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"created_by":{"description":"Who made the campaign: a user id from GET /team. Null when no maker is recorded. GET /campaigns?owner= filters on it.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"customer_ref":{"description":"Your own customer this campaign is for: the X-Customer-Ref header it was created with. Null when it was created without one.","nullable":true,"type":"string"},"delivered_count":{"description":"How many enquiries were delivered.","minimum":0,"type":"integer"},"delivery_target":{"description":"How many delivered enquiries the campaign stops at. Null when there is no cap.","nullable":true,"type":"integer"},"discovery_end":{"allOf":[{"$ref":"#/components/schemas/DiscoveryEnd"}],"description":"How the newest search ended, and why the list is the size it is. Null when the campaign never searched.","nullable":true},"discovery_spent_cents":{"description":"How much the search cost. Whole US cents.","minimum":0,"type":"integer"},"discovery_target":{"description":"How many companies the search aims for.","nullable":true,"type":"integer"},"discovery_target_kind":{"description":"What discovery_target counts. websites: websites found, whether or not they have a contact form. with_form: companies with a contact form we can write to; the search holds as many websites as the country's measured form rate needs and searches again by itself while short, at most six times.","enum":["websites","with_form"],"type":"string"},"draft_body":{"description":"The text of the message typed in the wizard, line breaks kept, until the campaign is signed off. Never sent. Null when none is kept, after the sign-off, or while this feature is off for your account.","nullable":true,"type":"string"},"draft_subject":{"description":"The subject of the message typed in the wizard, as PATCH /campaigns/{id} kept it until the campaign is signed off. Never sent. Null when none is kept, after the sign-off, or while this feature is off for your account.","nullable":true,"type":"string"},"exclude_known":{"description":"Whether companies already on any of your lists or campaigns are left out of the search.","type":"boolean"},"forms_reused":{"description":"How many companies had their contact-form result taken from an earlier check (a form found, or no form found, within 30 days) instead of a fresh read for this campaign.","minimum":0,"type":"integer"},"found":{"description":"How many companies the search found: every company on the campaign.","minimum":0,"type":"integer"},"harvest_contacts":{"description":"Whether contact details are collected.","type":"boolean"},"id":{"description":"The campaign id.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"keywords":{"description":"The search words the companies were found with.","items":{"type":"string"},"type":"array"},"language_code":{"description":"The language the enquiries are written in.","example":"de","type":"string"},"last_reply_at":{"description":"When the newest of those replies was received. Null while the campaign has none.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"list_hash":{"description":"A fingerprint of the signed list.","nullable":true,"type":"string"},"name":{"description":"Its name.","type":"string"},"office_hours":{"allOf":[{"$ref":"#/components/schemas/OwnOfficeHours"}],"description":"The campaign's own office hours, as PUT /campaigns/{id}/office-hours set them. Null when it follows its country's hours.","nullable":true},"only_country":{"description":"Only the companies of the list in this country were taken (two capital letters), or none for only those whose country is not known; a list or website added later keeps to it. Null when the campaign takes every company.","example":"DE","nullable":true,"pattern":"^(?:[A-Z]{2}|none)$","type":"string"},"order_shape":{"description":"How the campaign was ordered: the order_shape it was created with. Null for the usual order with a budget. flat: ordered under the flat order form: one price per sent form, with no captcha budget to set.","enum":["flat"],"nullable":true,"type":"string"},"progress":{"allOf":[{"$ref":"#/components/schemas/ResearchProgress"}],"description":"How the research for this campaign is going, for a progress bar. Null while this feature is off for your account.","nullable":true},"rate_per_hour":{"description":"How many enquiries may be sent per hour at most.","type":"integer"},"ready":{"description":"How many have a contact form read and ready.","minimum":0,"type":"integer"},"replied_count":{"description":"How many replies the campaign has had: the mail matched to it as a reply, the rows GET /v1/inbound-matches?kind=replied&campaign_id={id} lists. Automatic replies, bounces and objections are not replies and are not counted.","minimum":0,"type":"integer"},"reservation_released_at":{"description":"When the unspent reservation was released.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"reserved_cents":{"description":"How much is set aside for this campaign. Whole US cents.","minimum":0,"type":"integer"},"search":{"allOf":[{"$ref":"#/components/schemas/Search"}],"description":"The newest search on the campaign. Null when no search was ever queued.","nullable":true},"search_hold":{"allOf":[{"$ref":"#/components/schemas/SearchHold"}],"description":"The credit this campaign's search holds. Null when it holds none.","nullable":true},"search_started":{"description":"Whether a search or a check was ever queued for it. Until then it is a draft that can still change its keywords, country and language, and can be thrown away.","type":"boolean"},"send_enquiries":{"description":"Whether enquiries are sent at all, or only contacts harvested.","type":"boolean"},"sendable":{"description":"How many of them have a contact form we can write to: ready, waiting, sending or submitted. With discovery_target_kind with_form, the goal is met when this reaches discovery_target.","minimum":0,"type":"integer"},"serp_location_code":{"description":"The code of the town the search is anchored on.","nullable":true,"type":"integer"},"serp_location_name":{"description":"The name of that town.","nullable":true,"type":"string"},"service_delay":{"allOf":[{"$ref":"#/components/schemas/ServiceDelay"}],"description":"Null, or a notice that work on this campaign is delayed on our side. Shown only on a campaign waiting on us, never on a draft, paused, finished or cancelled one. Show title and message as given; it clears by itself and needs nothing from you.","nullable":true},"skip_contacted":{"description":"Whether companies written to before are left out.","type":"boolean"},"solve_budget_cents":{"description":"How much may be spent on challenge solving. Whole US cents.","minimum":0,"type":"integer"},"solve_spent_cents":{"description":"How much was spent on challenge solving. Whole US cents.","minimum":0,"type":"integer"},"spent_cents":{"description":"What the campaign took from credit: its charges and its search fees. Whole US cents.","minimum":0,"type":"integer"},"spent_micros":{"description":"What the campaign took from credit, in micro-dollars (1 USD = 1,000,000): its charges and its search fees.","minimum":0,"type":"integer"},"state":{"$ref":"#/components/schemas/CampaignState"},"stop_reason":{"allOf":[{"$ref":"#/components/schemas/StopReason"}],"nullable":true},"targets":{"description":"How many companies are on it.","minimum":0,"type":"integer"},"template_group":{"description":"The group the messages were taken from, when the campaign was given template_group. Null when it was given a list.","nullable":true,"type":"string"},"template_ids":{"description":"The messages it sends, in turn order: one to five, or up to twenty where that is offered. One when the campaign has a single message, none when it has none yet.","items":{"description":"A message.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"type":"array"},"unprofiled":{"description":"How many sites have not been read yet.","minimum":0,"type":"integer"},"unspent_cents":{"description":"How much of the reservation is still unspent. Whole US cents.","minimum":0,"type":"integer"},"updated_at":{"description":"When it last changed.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"versions_instruction":{"description":"The campaign's own instruction for its per-company versions, as PUT /campaigns/{id}/versions-instruction saved it. Null when none is saved.","nullable":true,"type":"string"},"website_fee_back_cents":{"description":"The website fees that came back because this campaign sent to those websites. Whole US cents.","minimum":0,"type":"integer"},"website_fee_back_micros":{"description":"The website fees that came back because this campaign sent to those websites, in micro-dollars. The fees were charged to the list; spent less this is what the campaign changed the balance by.","minimum":0,"type":"integer"},"websites_being_found":{"description":"How many websites are still being looked for on the saved list this campaign was made from; each one found joins the campaign. 0 when it takes no more: not made from a list, signed off, or holding 500 companies.","minimum":0,"type":"integer"},"wizard_step":{"description":"Where your screens were in setting the campaign up, as PATCH /campaigns/{id} saved it. Null when none is saved.","nullable":true,"type":"string"}},"required":["id","name","state","keywords","activity","country_code","only_country","language_code","rate_per_hour","solve_budget_cents","solve_spent_cents","assist_budget_cents","assist_spent_cents","reserved_cents","discovery_spent_cents","unspent_cents","spent_micros","spent_cents","website_fee_back_micros","website_fee_back_cents","reservation_released_at","delivery_target","delivered_count","stop_reason","replied_count","last_reply_at","send_enquiries","order_shape","country","created_by","customer_ref","ai_writer","versions_instruction","template_ids","template_group","discovery_target","discovery_target_kind","exclude_known","already_known","skip_contacted","already_contacted","serp_location_code","serp_location_name","attested_at","list_hash","created_at","updated_at","wizard_step","harvest_contacts","draft_subject","draft_body","search_started","office_hours","targets","ready","found","sendable","forms_reused","unprofiled","websites_being_found","search","search_hold","discovery_end","copied_from_campaign_id","progress","service_delay"],"type":"object"},"CampaignAddedToList":{"description":"What adding a campaign's companies to a list did.","properties":{"added":{"description":"How many domains were added.","minimum":0,"type":"integer"},"already_on_the_list":{"description":"How many were on it already.","minimum":0,"type":"integer"},"from_campaign":{"description":"The campaign they came from.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"list_id":{"description":"The list.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"name":{"description":"Its name.","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"total":{"description":"How many domains the list has now.","minimum":0,"type":"integer"}},"required":["list_id","name","added","already_on_the_list","from_campaign","total","request_id"],"type":"object"},"CampaignChanged":{"description":"The campaign as it is now.","properties":{"activity":{"description":"The PKD codes of the companies wanted; empty when the campaign has no trade.","items":{"type":"string"},"type":"array"},"ai_writer":{"description":"Whether the AI writer is on.","type":"boolean"},"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"country_code":{"description":"The country searched.","example":"DE","pattern":"^[A-Z]{2}$","type":"string"},"delivery_target":{"description":"How many delivered enquiries it stops at.","nullable":true,"type":"integer"},"discovery_target":{"description":"How many companies the search aims for.","nullable":true,"type":"integer"},"discovery_target_kind":{"description":"What discovery_target counts. websites: websites found, whether or not they have a contact form. with_form: companies with a contact form we can write to; the search holds as many websites as the country's measured form rate needs and searches again by itself while short, at most six times.","enum":["websites","with_form"],"type":"string"},"draft_body":{"description":"The text of the message typed in the wizard, line breaks kept. Null when none is kept or while this feature is off for your account.","nullable":true,"type":"string"},"draft_subject":{"description":"The subject of the message typed in the wizard. Null when none is kept or while this feature is off for your account.","nullable":true,"type":"string"},"exclude_known":{"description":"Whether companies already on any of your lists or campaigns are left out of the search.","type":"boolean"},"harvest_contacts":{"description":"Whether contact details are collected.","type":"boolean"},"harvest_job_id":{"description":"The pass that reads the contact pages of the companies already read, when this change turned collecting on. Null otherwise.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"keywords":{"description":"The search words.","items":{"type":"string"},"type":"array"},"language_code":{"description":"The language the enquiries are written in.","example":"de","type":"string"},"name":{"description":"Its name.","type":"string"},"rate_per_hour":{"description":"How many enquiries may be sent per hour at most.","type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"search_refused":{"description":"Why a raised goal could not queue a search: the credit it would hold is not there, or the day's 100 searches are started. The change itself stands. Null when nothing was refused.","nullable":true,"type":"string"},"searching_more":{"description":"The search a raised goal queued, when the campaign's newest search had stopped at its goal and more may exist. It holds credit and counts against the day's searches like any search. Null when nothing was queued.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"send_enquiries":{"description":"Whether enquiries are sent.","type":"boolean"},"skip_contacted":{"description":"Whether companies written to before are left out.","type":"boolean"},"solve_budget_cents":{"description":"How much may be spent on challenge solving. Whole US cents.","minimum":0,"type":"integer"},"state":{"$ref":"#/components/schemas/CampaignState"},"wizard_step":{"description":"Where your screens were in setting the campaign up. Null when none is saved.","nullable":true,"type":"string"}},"required":["campaign_id","name","discovery_target","discovery_target_kind","delivery_target","solve_budget_cents","send_enquiries","ai_writer","exclude_known","searching_more","search_refused","activity","harvest_contacts","harvest_job_id","keywords","country_code","language_code","skip_contacted","rate_per_hour","wizard_step","draft_subject","draft_body","state","request_id"],"type":"object"},"CampaignChanges":{"description":"What can change on a campaign now, and how.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"fields":{"description":"One entry per thing a person can change, always in the same order.","items":{"description":"One thing that can change, or not now.","properties":{"can_change":{"description":"Whether a change would be taken now.","type":"boolean"},"field":{"description":"What can change. name: the campaign's name. keywords: the search words. country: the country searched. language: the language the enquiries are written in. skip_contacted: whether companies written to before are left out. wizard_step: where your screens were in setting it up. discovery_target: how many companies the search aims for. discovery_target_kind: what that number counts. activity: the PKD codes of the companies wanted. exclude_known: whether companies already on your lists or campaigns are left out. delivery_target: how many delivered enquiries it stops at. solve_budget_cents: how much may be spent on challenge solving. send_enquiries: whether enquiries are sent at all. ai_writer: whether the AI writer writes each company its own version. harvest_contacts: whether contact details are collected. rate_per_hour: how many enquiries may be sent per hour. office_hours: the hours enquiries go out in. message: the message or messages it sends. places: the towns it searches. draft_subject: the subject of the message typed in the wizard. draft_body: the text of the message typed in the wizard.","enum":["name","keywords","country","language","skip_contacted","wizard_step","discovery_target","discovery_target_kind","activity","exclude_known","delivery_target","solve_budget_cents","send_enquiries","ai_writer","harvest_contacts","rate_per_hour","office_hours","message","places","draft_subject","draft_body"],"type":"string"},"how":{"description":"The call that changes it.","properties":{"field":{"description":"The body field to send. Null when the call takes a whole body of its own.","nullable":true,"type":"string"},"method":{"description":"The method of the call. PATCH: change fields of the campaign. PUT: send the whole of it.","enum":["PATCH","PUT"],"type":"string"},"path":{"description":"The path of the call, with {id} for the campaign, like /campaigns/{id}.","type":"string"}},"required":["method","path","field"],"type":"object"},"reason":{"description":"The words a change would be refused with now. Null when it can change.","nullable":true,"type":"string"},"takes_effect":{"description":"When a change counts. now: at once. next_company: from the next company written to. next_search: from the next search.","enum":["now","next_company","next_search"],"type":"string"}},"required":["field","can_change","reason","how","takes_effect"],"type":"object"},"type":"array"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"search_started":{"description":"Whether a search or a check was ever queued for it.","type":"boolean"},"state":{"$ref":"#/components/schemas/CampaignState"}},"required":["campaign_id","state","search_started","fields","request_id"],"type":"object"},"CampaignCharges":{"description":"One campaign's sends, charged and not charged.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"charged":{"description":"Sends the form confirmed: the only ones charged.","properties":{"amount_micros":{"description":"What they cost, in millionths of a US dollar: from prepaid credit, or counted for your invoice.","minimum":0,"type":"integer"},"sends":{"description":"Sends confirmed.","minimum":0,"type":"integer"}},"required":["sends","amount_micros"],"type":"object"},"latest_not_charged":{"description":"The latest sends not charged, newest first, up to limit.","items":{"description":"A send not charged.","properties":{"domain":{"description":"The company's website.","example":"example.com","type":"string"},"outcome":{"description":"Why it was not charged. failed: failed. unconfirmed: not confirmed. blocked: blocked.","enum":["failed","unconfirmed","blocked"],"type":"string"},"reason_code":{"description":"A short code for what went wrong, when one was kept.","nullable":true,"type":"string"},"reason_group":{"description":"The group the reason falls in, when one was kept.","nullable":true,"type":"string"},"submission_id":{"description":"The send.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"submitted_at":{"description":"When it was tried.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"target_id":{"description":"The company it was for.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["submission_id","target_id","domain","outcome","reason_code","reason_group","submitted_at"],"type":"object"},"type":"array"},"not_charged":{"description":"Sends never charged, by why.","properties":{"blocked":{"description":"The site blocked the send.","minimum":0,"type":"integer"},"failed":{"description":"The form could not be filled or sent.","minimum":0,"type":"integer"},"saved_micros":{"description":"What these would have cost at the campaign's price now, in millionths of a US dollar.","minimum":0,"type":"integer"},"sends":{"description":"Sends not charged.","minimum":0,"type":"integer"},"unconfirmed":{"description":"Sent, but the site did not confirm it took the message.","minimum":0,"type":"integer"}},"required":["sends","failed","unconfirmed","blocked","saved_micros"],"type":"object"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"sends":{"description":"Sends tried on this campaign.","minimum":0,"type":"integer"},"unit_price_micros":{"description":"The campaign's price for one send, in millionths of a US dollar.","minimum":0,"type":"integer"}},"required":["campaign_id","unit_price_micros","sends","charged","not_charged","latest_not_charged","request_id"],"type":"object"},"CampaignContacts":{"description":"The contacts harvested on a campaign.","properties":{"contacts":{"description":"The contacts, by domain.","items":{"$ref":"#/components/schemas/Contact"},"type":"array"},"harvest_requested":{"description":"Whether the campaign asked for contacts to be harvested.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"withheld":{"description":"How many more contacts wait for tomorrow. Always 0 while searches hold credit (search_hold.on in GET /v1/credit). Otherwise each customer is handed at most 500 new contacts a UTC day through the API.","minimum":0,"type":"integer"}},"required":["harvest_requested","withheld","contacts","request_id"],"type":"object"},"CampaignCopied":{"description":"The copy that was made.","properties":{"added":{"description":"How many companies were added.","minimum":0,"type":"integer"},"already_known":{"description":"How many of them the copy already had elsewhere: on another of your lists or campaigns, the source included.","minimum":0,"type":"integer"},"campaign_id":{"description":"The new campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"copied_from_campaign_id":{"description":"The campaign it was copied from, as recorded on the copy while copy modes are on for your account; null otherwise.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"list_id":{"description":"The saved list the companies went through.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"mode":{"description":"How it was copied. kept: with the companies that were checked and kept. settings: with its search or list and every setting, and no companies yet.","enum":["kept","settings"],"type":"string"},"name":{"description":"The name of the copy.","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"reserved_cents":{"description":"How much was set aside. Whole US cents.","minimum":0,"type":"integer"},"send_enquiries":{"description":"Whether enquiries are sent.","type":"boolean"},"solve_budget_cents":{"description":"How much may be spent on challenge solving. Whole US cents.","minimum":0,"type":"integer"},"source_campaign_id":{"description":"The campaign it was copied from.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"total":{"description":"How many companies the copy has.","minimum":0,"type":"integer"}},"required":["campaign_id","source_campaign_id","list_id","name","added","already_known","total","send_enquiries","solve_budget_cents","reserved_cents","mode","copied_from_campaign_id","request_id"],"type":"object"},"CampaignCopiedToCountry":{"description":"The copy that was made for another country.","properties":{"campaign_id":{"description":"The new campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"country_code":{"description":"The country it searches.","example":"DE","pattern":"^[A-Z]{2}$","type":"string"},"delivery_target":{"description":"How many delivered enquiries it stops at.","nullable":true,"type":"integer"},"discovery_target":{"description":"How many companies the search aims for.","nullable":true,"type":"integer"},"keywords":{"description":"The search words.","items":{"type":"string"},"type":"array"},"language_code":{"description":"The language its enquiries are written in.","example":"de","type":"string"},"name":{"description":"The name of the copy.","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"send_enquiries":{"description":"Whether enquiries are sent.","type":"boolean"},"skip_contacted":{"description":"Whether companies written to before are left out.","type":"boolean"},"solve_budget_cents":{"description":"How much may be spent on challenge solving. Whole US cents.","minimum":0,"type":"integer"},"source_campaign_id":{"description":"The campaign it was copied from.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["campaign_id","source_campaign_id","name","country_code","language_code","keywords","solve_budget_cents","discovery_target","delivery_target","send_enquiries","skip_contacted","request_id"],"type":"object"},"CampaignCopyPreview":{"description":"What each way of copying a campaign would give, before copying.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"copied_from_campaign_id":{"description":"The campaign this one was itself copied from; null when not recorded.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"kept":{"description":"Copying with the companies that were checked and kept.","properties":{"already_contacted":{"description":"Of those, the ones your account has already written to from any campaign.","minimum":0,"type":"integer"},"available":{"description":"Whether this way can be used now.","type":"boolean"},"companies":{"description":"Companies checked and kept: ready to write to, or already written to.","minimum":0,"type":"integer"},"cost_micros":{"description":"to_send times unit_micros; 0 for a campaign that sends nothing.","minimum":0,"type":"integer"},"reason":{"description":"Why not, in words. Null when available.","nullable":true,"type":"string"},"to_send":{"description":"The most the copy will write to: companies, less already_contacted when the campaign skips companies already written to. A country or new-companies-only setting can leave out a few more.","minimum":0,"type":"integer"},"unit_micros":{"description":"The price of one enquiry now, in micro-dollars (1 USD = 1,000,000).","type":"integer"}},"required":["available","reason","companies","already_contacted","to_send","unit_micros","cost_micros"],"type":"object"},"name":{"description":"Its name.","type":"string"},"not_copied":{"description":"What neither way copies.","items":{"description":"One thing not copied. repeat_schedule: the repeat schedule. sends: the sends. replies: the replies. history: the history. contact_harvesting: contact harvesting, whose terms are accepted again on the copy.","enum":["repeat_schedule","sends","replies","history","contact_harvesting"],"type":"string"},"type":"array"},"office_hours":{"description":"Whether it has its own office hours; both ways copy them.","type":"boolean"},"on":{"description":"Whether copying with settings only is available for your account yet.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"settings":{"description":"Copying with its search or list and every setting, and no companies yet.","properties":{"available":{"description":"Whether this way can be used now.","type":"boolean"},"reason":{"description":"Why not, in words. Null when available.","nullable":true,"type":"string"},"repeats":{"description":"What the copy runs again. Null when it has neither. search: the same search words. list: the saved list the campaign was made from.","enum":["search","list"],"nullable":true,"type":"string"}},"required":["available","reason","repeats"],"type":"object"},"versions":{"description":"Message versions the campaign sends; both ways copy them.","minimum":0,"type":"integer"}},"required":["campaign_id","on","name","kept","settings","versions","office_hours","not_copied","copied_from_campaign_id","request_id"],"type":"object"},"CampaignCostForecast":{"description":"What a campaign still needs, and whether the credit left covers it.","properties":{"available_micros":{"description":"The credit available now, in micro-dollars (1 USD = 1,000,000).","type":"integer"},"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"companies_left":{"description":"Its companies not yet written to.","minimum":0,"type":"integer"},"cost_micros":{"description":"companies_left times unit_micros, in micro-dollars (1 USD = 1,000,000).","minimum":0,"type":"integer"},"covered":{"description":"Whether the credit available pays for cost_micros.","type":"boolean"},"on":{"description":"Whether the forecast is shown for your account yet.","type":"boolean"},"prepaid":{"description":"Whether this account pays in advance. When false, covered is always true.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"shortfall_micros":{"description":"How much more credit it needs; 0 when covered.","minimum":0,"type":"integer"},"unit_micros":{"description":"The price of one enquiry now, in micro-dollars (1 USD = 1,000,000).","type":"integer"}},"required":["campaign_id","on","prepaid","companies_left","unit_micros","cost_micros","available_micros","covered","shortfall_micros","request_id"],"type":"object"},"CampaignDetail":{"allOf":[{"$ref":"#/components/schemas/Campaign"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"CampaignDiscarded":{"description":"The draft that was thrown away.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"discarded_at":{"description":"When it was thrown away.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["campaign_id","discarded_at","request_id"],"type":"object"},"CampaignMade":{"description":"The campaign that was made.","properties":{"ai_writer":{"description":"Whether the AI writer is on for it.","type":"boolean"},"campaign_id":{"description":"The new campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"delivery_target":{"description":"How many delivered enquiries it stops at.","nullable":true,"type":"integer"},"discovery_target":{"description":"How many companies the search aims for.","nullable":true,"type":"integer"},"discovery_target_kind":{"description":"What discovery_target counts. websites: websites found, whether or not they have a contact form. with_form: companies with a contact form we can write to; the search holds as many websites as the country's measured form rate needs and searches again by itself while short, at most six times.","enum":["websites","with_form"],"type":"string"},"exclude_known":{"description":"Whether companies already on any of your lists or campaigns are left out.","type":"boolean"},"harvest_contacts":{"description":"Whether contacts are harvested.","type":"boolean"},"keywords":{"description":"The search words.","items":{"type":"string"},"type":"array"},"order_shape":{"description":"How the order was placed.","nullable":true,"type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"send_enquiries":{"description":"Whether enquiries are sent.","type":"boolean"},"skip_contacted":{"description":"Whether companies written to before are left out.","type":"boolean"},"solve_budget_cents":{"description":"How much may be spent on challenge solving. Whole US cents.","minimum":0,"type":"integer"},"template_group":{"description":"The group the messages were taken from, when the campaign was given template_group. Null when it was given a list.","nullable":true,"type":"string"},"template_ids":{"description":"The messages it sends, in turn order: one to five, or up to twenty where that is offered. One when the campaign has a single message, none when it has none yet.","items":{"description":"A message.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"type":"array"}},"required":["campaign_id","keywords","delivery_target","discovery_target","discovery_target_kind","skip_contacted","exclude_known","harvest_contacts","send_enquiries","solve_budget_cents","order_shape","ai_writer","template_ids","template_group","request_id"],"type":"object"},"CampaignMadeFromList":{"description":"The campaign that was made from a saved list.","properties":{"added":{"description":"How many were added to the campaign.","minimum":0,"type":"integer"},"ai_writer":{"description":"Whether the AI writer is on for it.","type":"boolean"},"already_contacted":{"description":"How many were left out as written to before.","minimum":0,"type":"integer"},"already_known":{"description":"How many of them are already on another of your lists or campaigns; a list is imported whole, so they are counted, not left out.","minimum":0,"type":"integer"},"already_on_the_campaign":{"description":"How many were on it already.","minimum":0,"type":"integer"},"campaign_id":{"description":"The new campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"delivery_target":{"description":"How many delivered enquiries it stops at.","nullable":true,"type":"integer"},"exclude_known":{"description":"Whether companies already on any of your lists or campaigns are left out of later searches.","type":"boolean"},"harvest_contacts":{"description":"Whether contacts are harvested.","type":"boolean"},"left_behind_for_room":{"description":"How many did not fit within the delivery target.","minimum":0,"type":"integer"},"left_out_by_country":{"description":"How many companies on the list were left out because they are not in the campaign's only_country. 0 when the campaign takes every company.","minimum":0,"type":"integer"},"list_id":{"description":"The list it was made from.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"list_name":{"description":"The name of that list.","type":"string"},"on_the_list":{"description":"How many domains the list holds.","minimum":0,"type":"integer"},"only_country":{"description":"Only the companies of the list in this country were taken (two capital letters), or none for only those whose country is not known; a list or website added later keeps to it. Null when the campaign takes every company.","example":"DE","nullable":true,"pattern":"^(?:[A-Z]{2}|none)$","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"reserved_cents":{"description":"How much was set aside. Whole US cents.","minimum":0,"type":"integer"},"send_enquiries":{"description":"Whether enquiries are sent.","type":"boolean"},"skip_contacted":{"description":"Whether companies written to before are left out.","type":"boolean"},"skipped_known":{"description":"How many companies the register put on the list were left out because the campaign asks for new companies only and you already have them, by website or by register number. Zero unless the campaign asks and the feature is on for your account. With the other counts it makes up on_the_list.","minimum":0,"type":"integer"},"solve_budget_cents":{"description":"How much may be spent on challenge solving. Whole US cents.","minimum":0,"type":"integer"},"template_group":{"description":"The group the messages were taken from, when the campaign was given template_group. Null when it was given a list.","nullable":true,"type":"string"},"template_ids":{"description":"The messages it sends, in turn order: one to five, or up to twenty where that is offered. One when the campaign has a single message, none when it has none yet.","items":{"description":"A message.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"type":"array"},"total":{"description":"How many companies the campaign has now.","minimum":0,"type":"integer"},"websites_being_found":{"description":"How many websites are still being looked for on the list; each one found joins this campaign until it is signed off.","minimum":0,"type":"integer"}},"required":["campaign_id","list_id","list_name","on_the_list","added","already_on_the_campaign","already_contacted","left_out_by_country","skipped_known","already_known","left_behind_for_room","total","websites_being_found","delivery_target","skip_contacted","exclude_known","harvest_contacts","send_enquiries","solve_budget_cents","reserved_cents","ai_writer","template_ids","template_group","only_country","request_id"],"type":"object"},"CampaignMessageSet":{"description":"The message the campaign sends now.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"template_group":{"description":"The group the messages were taken from, when the campaign was given template_group. Null when it was given a list.","nullable":true,"type":"string"},"template_id":{"description":"The message, the first of them when there are several.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"template_ids":{"description":"The messages it sends, in turn order: one to five, or up to twenty where that is offered. One when the campaign has a single message, none when it has none yet.","items":{"description":"A message.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"type":"array"},"template_name":{"description":"Its name.","type":"string"}},"required":["template_id","template_name","template_ids","template_group","request_id"],"type":"object"},"CampaignOfficeHours":{"description":"The office hours in force for one campaign: its own, or its country's.","properties":{"applies":{"description":"Whether office hours hold sending back at all for this campaign right now.","type":"boolean"},"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"close_hour":{"description":"The hour sending stops, 1 to 24.","maximum":24,"minimum":1,"type":"integer"},"country_code":{"description":"The campaign's country, whose time zone and public holidays the hours follow.","example":"DE","pattern":"^[A-Z]{2}$","type":"string"},"days":{"description":"The days sending may happen, 1 (Monday) to 7 (Sunday).","items":{"description":"A day.","maximum":7,"minimum":1,"type":"integer"},"type":"array"},"next_open_slot":{"description":"The next time sending may start. Null when no office hours apply.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"open_hour":{"description":"The hour sending may start, 0 to 23.","maximum":23,"minimum":0,"type":"integer"},"own":{"description":"True when these are the campaign's own hours, false when they are its country's.","type":"boolean"},"time_zone":{"description":"The time zone the hours are in.","example":"Europe/Berlin","type":"string"}},"required":["campaign_id","country_code","own","time_zone","open_hour","close_hour","days","applies","next_open_slot"],"type":"object"},"CampaignOfficeHoursCleared":{"allOf":[{"$ref":"#/components/schemas/CampaignOfficeHours"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"CampaignOfficeHoursNow":{"allOf":[{"$ref":"#/components/schemas/CampaignOfficeHours"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"CampaignOfficeHoursSet":{"allOf":[{"$ref":"#/components/schemas/CampaignOfficeHours"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"CampaignPage":{"description":"A page of campaigns.","properties":{"campaigns":{"description":"The campaigns on this page.","items":{"$ref":"#/components/schemas/Campaign"},"type":"array"},"limit":{"description":"How many rows were asked for at most.","type":"integer"},"offset":{"description":"How many rows were skipped.","type":"integer"},"order_form":{"description":"Which order form the app offers for a new campaign now. A call here may send either (order_shape on a new campaign); a campaign already made keeps its own order_shape. budget: the usual order, with a budget to set. flat: one price per sent form, with no captcha budget to set.","enum":["budget","flat"],"type":"string"},"page":{"$ref":"#/components/schemas/Page"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"total":{"description":"How many rows there are in all.","minimum":0,"type":"integer"}},"required":["campaigns","total","limit","offset","order_form","request_id","page"],"type":"object"},"CampaignPaused":{"description":"The campaign that was paused.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"pause_reason":{"description":"Why, as you gave it.","nullable":true,"type":"string"},"paused_at":{"description":"When it was paused.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"state":{"description":"Always paused.","type":"string"}},"required":["campaign_id","state","paused_at","pause_reason","request_id"],"type":"object"},"CampaignReplyInterest":{"description":"One campaign's replies by tag.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"interested":{"description":"Of those, tagged interested.","minimum":0,"type":"integer"},"not_interested":{"description":"Of those, tagged not interested.","minimum":0,"type":"integer"},"on":{"description":"Whether tagging replies is available for your account. While it is not, every reply counts as untagged.","type":"boolean"},"replies":{"description":"Mail tied to this campaign as a reply.","minimum":0,"type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"untagged":{"description":"Of those, not tagged yet.","minimum":0,"type":"integer"}},"required":["campaign_id","on","replies","interested","not_interested","untagged","request_id"],"type":"object"},"CampaignResults":{"description":"What came back from a campaign.","properties":{"auto_replied":{"description":"Automatic replies.","minimum":0,"type":"integer"},"bounced":{"description":"Bounces.","minimum":0,"type":"integer"},"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"confirmed":{"description":"Sends the site confirmed.","minimum":0,"type":"integer"},"median_days_to_reply":{"description":"The middle number of days between the send and the reply.","nullable":true,"type":"number"},"objected":{"description":"Requests not to be contacted.","minimum":0,"type":"integer"},"replied":{"description":"Companies that wrote back.","minimum":0,"type":"integer"},"reply_rate_pct":{"description":"Replies per hundred sent.","nullable":true,"type":"number"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"responses":{"description":"The answers, newest first.","items":{"$ref":"#/components/schemas/RecordedAnswer"},"type":"array"},"responses_total":{"description":"How many answers were recorded.","minimum":0,"type":"integer"},"sent":{"description":"Enquiries sent.","minimum":0,"type":"integer"},"success_rate_pct":{"description":"Sent per hundred working forms. Empty until a working form was tried.","nullable":true,"type":"number"},"working_forms":{"description":"Companies with a working form the service tried: sent, blocked or failed, less the failures the site itself caused.","minimum":0,"type":"integer"}},"required":["campaign_id","sent","confirmed","working_forms","success_rate_pct","replied","auto_replied","bounced","objected","reply_rate_pct","median_days_to_reply","responses_total","responses","request_id"],"type":"object"},"CampaignSavedAsList":{"description":"The list that was made.","properties":{"added":{"description":"How many domains went on it.","minimum":0,"type":"integer"},"list_id":{"description":"The new list.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"name":{"description":"Its name.","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["list_id","name","added","request_id"],"type":"object"},"CampaignSchedule":{"description":"A campaign's repeat schedule.","properties":{"created_at":{"description":"When it was first set.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"days":{"description":"The days it runs, 1 (Monday) to 7 (Sunday).","items":{"description":"A day.","maximum":7,"minimum":1,"type":"integer"},"type":"array"},"failures_in_row":{"description":"How many runs in a row started nothing. At 3 the schedule pauses itself.","minimum":0,"type":"integer"},"mode":{"description":"What a run does. new: finds more companies. same: writes to the companies on the signed list not written to yet.","enum":["new","same"],"type":"string"},"next_run_at":{"description":"When the next run starts. Null unless active.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"paused_reason":{"description":"Why it is paused, in words. Null unless paused.","nullable":true,"type":"string"},"status":{"description":"Whether it runs. active: runs at the next slot. paused: waits until resumed. stopped: never runs again; PUT sets a new one.","enum":["active","paused","stopped"],"type":"string"},"time":{"description":"The time it runs, HH:MM, in time_zone.","pattern":"^[0-2][0-9]:[0-5][0-9]$","type":"string"},"time_zone":{"description":"The time zone of time.","example":"Europe/Berlin","type":"string"},"updated_at":{"description":"When it last changed.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"waiting_on_us":{"description":"True while the run is due but work is delayed on our side: it runs once when we are back, up to 24 hours late, and does not count as a failure. False otherwise, and always false while this is off for your account.","type":"boolean"}},"required":["days","time","time_zone","mode","status","paused_reason","next_run_at","failures_in_row","waiting_on_us","created_at","updated_at"],"type":"object"},"CampaignScheduleNow":{"allOf":[{"$ref":"#/components/schemas/CampaignScheduleState"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"CampaignSchedulePaused":{"allOf":[{"$ref":"#/components/schemas/CampaignScheduleState"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"CampaignScheduleResumed":{"allOf":[{"$ref":"#/components/schemas/CampaignScheduleState"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"CampaignScheduleRun":{"description":"One run of a repeat schedule.","properties":{"id":{"description":"The run.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"job":{"allOf":[{"$ref":"#/components/schemas/Job"}],"description":"The work it queued, as it stands now. Null unless started.","nullable":true},"job_id":{"description":"The work it queued. Null unless started.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"mode":{"description":"What the run did. new: looked for more companies. same: wrote to the companies not written to yet.","enum":["new","same"],"type":"string"},"outcome":{"description":"How it went. started: work was queued; job says how it goes. skipped: nothing was due or allowed; reason says why. failed: it could not start; reason says why.","enum":["started","skipped","failed"],"type":"string"},"ran_at":{"description":"When it ran.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"reason":{"description":"Why it was skipped or failed, in words. Null when started.","nullable":true,"type":"string"},"slot_at":{"description":"The time the run was due.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"}},"required":["id","slot_at","ran_at","mode","outcome","reason","job_id","job"],"type":"object"},"CampaignScheduleRunPage":{"description":"A page of the runs of a campaign's repeat schedule.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"limit":{"description":"How many rows were asked for at most.","type":"integer"},"offset":{"description":"How many rows were skipped.","type":"integer"},"page":{"$ref":"#/components/schemas/Page"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"runs":{"description":"The runs on this page, newest first.","items":{"$ref":"#/components/schemas/CampaignScheduleRun"},"type":"array"},"total":{"description":"How many rows there are in all.","minimum":0,"type":"integer"}},"required":["campaign_id","runs","total","limit","offset","request_id","page"],"type":"object"},"CampaignScheduleSet":{"allOf":[{"$ref":"#/components/schemas/CampaignScheduleState"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"CampaignScheduleState":{"description":"A campaign and its repeat schedule.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"default_time_zone":{"description":"The time zone a new schedule takes when none is given.","example":"Europe/Berlin","nullable":true,"type":"string"},"offered":{"description":"Whether repeat schedules are open for your account.","type":"boolean"},"schedule":{"allOf":[{"$ref":"#/components/schemas/CampaignSchedule"}],"description":"The schedule. Null until one is set.","nullable":true}},"required":["campaign_id","offered","default_time_zone","schedule"],"type":"object"},"CampaignScheduleStopped":{"allOf":[{"$ref":"#/components/schemas/CampaignScheduleState"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"CampaignState":{"description":"Where a campaign is. draft: being set up, nothing searched yet. discovered: companies found and read, waiting for sign-off. attested: signed off, sending can start. running: enquiries are being sent. paused: sending is on hold. done: finished. cancelled: stopped before it finished.","enum":["draft","discovered","attested","running","paused","done","cancelled"],"type":"string"},"CampaignStopped":{"description":"The campaign that was stopped.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"cancelled_jobs":{"description":"How many queued jobs were cancelled with it.","minimum":0,"type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"stop_reason":{"$ref":"#/components/schemas/StopReason"}},"required":["campaign_id","stop_reason","cancelled_jobs","request_id"],"type":"object"},"CampaignTown":{"description":"A town a campaign searches.","properties":{"distance_km":{"description":"How far it is from the anchor town, in kilometres.","nullable":true,"type":"number"},"dropped_at":{"description":"When it was dropped from the campaign.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"is_anchor":{"description":"Whether this is the town the search is centred on.","type":"boolean"},"location_code":{"description":"The code of the town, as the search source numbers it.","type":"integer"},"location_name":{"description":"The name of the town.","type":"string"}},"required":["location_code","location_name","is_anchor","distance_km","dropped_at"],"type":"object"},"CampaignTownDropped":{"description":"The town that was dropped.","properties":{"dropped_at":{"description":"When it was dropped.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"location_code":{"description":"The code of the town.","type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["location_code","dropped_at","request_id"],"type":"object"},"CampaignTowns":{"description":"The towns a campaign searches.","properties":{"locations":{"description":"The towns, anchor first.","items":{"$ref":"#/components/schemas/CampaignTown"},"type":"array"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["locations","request_id"],"type":"object"},"CampaignTownsSet":{"description":"The towns as they are now.","properties":{"locations":{"description":"How many towns the campaign has now.","minimum":0,"type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["locations","request_id"],"type":"object"},"CampaignVersions":{"description":"Each of a campaign's messages and how it did, counted as GET /campaigns/{id}/results counts.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"versions":{"description":"One per message, in turn order, then any message that was sent but is no longer used.","items":{"description":"One message of the campaign and its results.","properties":{"confirmed":{"description":"Of those, sends the site confirmed.","minimum":0,"type":"integer"},"in_rotation":{"description":"Whether the campaign still sends it. False for a message that was sent and then replaced; its results stay.","type":"boolean"},"name":{"description":"Its name. Null when the message was removed.","nullable":true,"type":"string"},"objected":{"description":"Companies sent it that asked not to be contacted.","minimum":0,"type":"integer"},"position":{"description":"Its place in the turns, from 1. Null when it is no longer used.","nullable":true,"type":"integer"},"replied":{"description":"Companies sent it that wrote back.","minimum":0,"type":"integer"},"reply_rate_pct":{"description":"Replies per hundred sent. Empty until one was sent.","nullable":true,"type":"number"},"submitted":{"description":"Enquiries sent with it.","minimum":0,"type":"integer"},"success_rate_pct":{"description":"Sent per hundred working forms. Empty until a working form was tried.","nullable":true,"type":"number"},"template_id":{"description":"The message.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"working_forms":{"description":"Companies given it with a working form the service tried.","minimum":0,"type":"integer"}},"required":["template_id","name","position","in_rotation","submitted","confirmed","replied","objected","working_forms","reply_rate_pct","success_rate_pct"],"type":"object"},"type":"array"}},"required":["campaign_id","versions","request_id"],"type":"object"},"CampaignWeeklyCapNow":{"description":"How many of a campaign's companies wait for next week because of the weekly cap.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"cap":{"description":"The most sends one company may have in a week.","minimum":0,"type":"integer"},"companies_waiting":{"description":"Companies on this campaign not yet sent to that already had cap sends this week. Always 0 while on is false.","minimum":0,"type":"integer"},"next_allowed_at":{"description":"When they may be sent to again. Null when none waits.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"on":{"description":"Whether the weekly cap is on for your account.","type":"boolean"},"reason_code":{"description":"Why they wait. Null when none waits. WEEKLY_CAP: they already had cap sends this week.","enum":["WEEKLY_CAP"],"nullable":true,"type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"time_zone":{"description":"Your account's time zone, which the week follows.","example":"Europe/Berlin","type":"string"},"week_ends_at":{"description":"Monday 00:00 of next week, in time_zone.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"week_starts_at":{"description":"Monday 00:00 of this week, in time_zone.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"}},"required":["campaign_id","on","cap","week_starts_at","week_ends_at","time_zone","companies_waiting","next_allowed_at","reason_code","request_id"],"type":"object"},"CaptchaFreePage":{"description":"A page of companies whose contact form has no challenge.","properties":{"captcha_free":{"description":"The rows on this page.","items":{"description":"One company.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"captcha_free_since":{"description":"Since when the form has had no challenge.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"checked_at":{"description":"When the site was last read.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"domain":{"description":"The company site.","example":"example.com","type":"string"},"protection":{"allOf":[{"$ref":"#/components/schemas/Protection"}],"nullable":true},"state":{"$ref":"#/components/schemas/CompanyState"},"target_id":{"description":"The company on the campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["target_id","campaign_id","domain","state","protection","captcha_free_since","checked_at"],"type":"object"},"type":"array"},"limit":{"description":"How many rows were asked for at most.","type":"integer"},"offset":{"description":"How many rows were skipped.","type":"integer"},"page":{"$ref":"#/components/schemas/Page"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"total":{"description":"How many rows there are in all.","minimum":0,"type":"integer"}},"required":["captcha_free","total","limit","offset","request_id","page"],"type":"object"},"CaptchaFreeSummary":{"description":"How many contact forms have no challenge.","properties":{"due":{"description":"How many are due to be read again.","minimum":0,"type":"integer"},"listed":{"description":"How many of your domains have a challenge-free form.","minimum":0,"type":"integer"},"lost_30d":{"description":"How many lost that in the last 30 days.","minimum":0,"type":"integer"},"pool":{"description":"How many challenge-free forms are known in all.","minimum":0,"type":"integer"},"reprofile_days":{"description":"After how many days a site is read again.","type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["listed","lost_30d","due","pool","reprofile_days","request_id"],"type":"object"},"ClosingLineCleared":{"description":"The closing line is ours again for one language.","properties":{"cleared":{"description":"False when there was no wording of your own.","type":"boolean"},"custom":{"description":"Always false.","type":"boolean"},"language":{"description":"The language code.","type":"string"},"offered":{"description":"Whether it is offered. False while this feature is off for your account.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["offered","language","cleared","custom","request_id"],"type":"object"},"ClosingLineSaved":{"description":"Your wording of the closing line was saved.","properties":{"custom":{"description":"Always true.","type":"boolean"},"language":{"description":"The language code.","type":"string"},"line":{"description":"Your line, holding {{opt_out_link}}.","type":"string"},"offered":{"description":"Whether it is offered. False while this feature is off for your account, and nothing changed.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["offered","language","line","custom","request_id"],"type":"object"},"ClosingLines":{"description":"The closing line on how to stop being contacted, per language.","properties":{"lines":{"description":"One per language.","items":{"description":"The closing line in one language.","properties":{"custom":{"description":"True when it is your own wording.","type":"boolean"},"language":{"description":"The language code.","type":"string"},"line":{"description":"The line in force, holding {{opt_out_link}}.","type":"string"},"standard":{"description":"Our line, holding {{opt_out_link}}.","type":"string"}},"required":["language","line","custom","standard"],"type":"object"},"type":"array"},"offered":{"description":"Whether your own wording is offered. False while this feature is off for your account; the lines are then ours.","type":"boolean"},"opt_out_link":{"description":"The link {{opt_out_link}} is filled with: the service's opt-out, on your own address when one is set up.","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["offered","request_id"],"type":"object"},"CompaniesRemoved":{"description":"What taking several companies off a campaign did, with one answer per company.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"items":{"description":"One answer per company sent, in the order first sent. A company sent twice is answered once.","items":{"description":"What happened to one company.","properties":{"domain":{"description":"The company site. Null when no company with that id is on this campaign.","example":"example.com","nullable":true,"type":"string"},"result":{"description":"What happened to it. removed: taken off the campaign. skipped: left as it was: why says why.","enum":["removed","skipped"],"type":"string"},"target_id":{"description":"The company, as it was sent.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"why":{"description":"Why it was left as it was. Null when it was taken off. not_on_campaign: no company with that id is on this campaign. already_contacted: the company has already been contacted, so it stays on the list. already_removed: the company had already been taken off.","enum":["not_on_campaign","already_contacted","already_removed"],"nullable":true,"type":"string"}},"required":["target_id","domain","result","why"],"type":"object"},"type":"array"},"list_hash":{"description":"A fingerprint of the list as it is now. Null while no company on the list is ready or signed for.","nullable":true,"type":"string"},"removed":{"description":"How many companies were taken off by this call.","minimum":0,"type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"skipped":{"description":"How many were left as they were.","minimum":0,"type":"integer"}},"required":["campaign_id","removed","skipped","list_hash","items","request_id"],"type":"object"},"Company":{"description":"A company on a campaign.","properties":{"contacted_before_at":{"description":"When another campaign last wrote to this domain.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"created_at":{"description":"When it was added.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"domain":{"description":"The company site.","example":"example.com","type":"string"},"first_sent_at":{"description":"When this campaign first sent this company something that went (confirmed or unconfirmed). Null until one went. A reply can be tied by hand only to a company with first_sent_at at or before the mail's received_at.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"form_checked_at":{"description":"When the site was last read for a contact form: the earlier check's time when form_reused, this read's when fresh. Null until read.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"form_fields":{"description":"How many boxes the contact form has, once read.","minimum":0,"nullable":true,"type":"integer"},"form_reused":{"description":"Whether the contact-form result came from an earlier check of this site rather than a fresh read for this campaign.","type":"boolean"},"form_url":{"description":"The page with the contact form.","nullable":true,"type":"string"},"id":{"description":"The company id on this campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"keyword":{"description":"The search words that found it.","nullable":true,"type":"string"},"message_by":{"allOf":[{"$ref":"#/components/schemas/MessageBy"}],"description":"Who wrote the message this company was last sent on this campaign. Null until one is sent.","nullable":true},"problem":{"allOf":[{"$ref":"#/components/schemas/Problem"}],"nullable":true},"protection":{"allOf":[{"$ref":"#/components/schemas/Protection"}],"nullable":true},"rank":{"description":"Its position in the search results that found it.","nullable":true,"type":"integer"},"ranked_url":{"description":"The page the search found.","nullable":true,"type":"string"},"reason_code":{"description":"The code behind the state.","nullable":true,"type":"string"},"reason_group":{"allOf":[{"$ref":"#/components/schemas/ReasonGroup"}],"description":"The group the reason falls in.","nullable":true},"robots_disallows_form":{"description":"Whether the site asks robots to stay off the form page.","nullable":true,"type":"boolean"},"role_email":{"description":"A role address found on the site. Only when no form was found and the domain is not on a do-not-contact list.","nullable":true,"type":"string"},"sequence_step":{"description":"Which step of the sequence it is on.","nullable":true,"type":"integer"},"serp_location_code":{"description":"The code of the town it was found for.","nullable":true,"type":"integer"},"serp_location_name":{"description":"The name of that town.","nullable":true,"type":"string"},"state":{"$ref":"#/components/schemas/CompanyState"},"template_id":{"description":"The campaign's message this company was given (its first message; follow-ups keep their step's own). Null until it is handed out.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"touch_due_at":{"description":"When the next step is due.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"updated_at":{"description":"When it last changed.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"}},"required":["id","domain","state","rank","keyword","ranked_url","form_url","protection","form_fields","robots_disallows_form","serp_location_code","serp_location_name","contacted_before_at","first_sent_at","problem","role_email","created_at","updated_at"],"type":"object"},"CompanyAdded":{"description":"The company that was added.","properties":{"domain":{"description":"The company site.","example":"example.com","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"state":{"$ref":"#/components/schemas/CompanyState"},"target_id":{"description":"The company on the campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["target_id","domain","state","request_id"],"type":"object"},"CompanyDetail":{"allOf":[{"description":"The campaign the company is on.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["campaign_id"],"type":"object"},{"$ref":"#/components/schemas/Company"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}],"description":"One company on a campaign."},"CompanyDropped":{"description":"The company that was dropped.","properties":{"domain":{"description":"The company site.","example":"example.com","type":"string"},"list_hash":{"description":"A fingerprint of the list as it is now.","nullable":true,"type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"target_id":{"description":"The company on the campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["target_id","domain","list_hash","request_id"],"type":"object"},"CompanyEvidence":{"description":"Every send attempt on a company, with its evidence.","properties":{"attempts":{"description":"The attempts, newest first.","items":{"description":"One attempt.","properties":{"domain":{"description":"The company site.","example":"example.com","type":"string"},"evidence":{"description":"What showed the outcome, in words.","nullable":true,"type":"string"},"facts":{"description":"What was seen during the attempt, as facts. Null when nothing was recorded.","nullable":true,"properties":{"captured_at":{"description":"When the facts were recorded.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"confirmation":{"description":"What was concluded from the page, in words.","nullable":true,"type":"string"},"duration_ms":{"description":"How long the attempt took, in milliseconds.","minimum":0,"nullable":true,"type":"number"},"fields_filled":{"description":"The boxes that were filled, 60 at most. The name of a box on the company's form is never answered.","items":{"description":"One box.","properties":{"kind":{"description":"The kind of box, a short lower-case word such as message. Null when it is not known.","nullable":true,"type":"string"}},"required":["kind"],"type":"object"},"nullable":true,"type":"array"},"final_url":{"description":"The page the attempt ended on, without its query.","nullable":true,"type":"string"},"protection":{"allOf":[{"$ref":"#/components/schemas/Protection"}],"nullable":true}},"required":["captured_at","duration_ms","final_url","protection","confirmation","fields_filled"],"type":"object"},"form_url":{"description":"The page with the contact form.","nullable":true,"type":"string"},"http_status":{"description":"The HTTP status the site answered with.","nullable":true,"type":"integer"},"images_purged_at":{"description":"When the screenshots were purged.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"outcome":{"$ref":"#/components/schemas/AttemptOutcome"},"reason_code":{"description":"The reason code, when it was not delivered.","nullable":true,"type":"string"},"reason_group":{"allOf":[{"$ref":"#/components/schemas/ReasonGroup"}],"nullable":true},"shots":{"description":"The screenshots, as stored, each with url (a link that works for five minutes, null when it could not be made) and url_expires_at. Null once purged.","nullable":true},"submission_id":{"description":"The attempt id.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"submitted_at":{"description":"When it was attempted.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"}},"required":["submission_id","domain","form_url","outcome","http_status","evidence","reason_code","reason_group","submitted_at","shots","facts","images_purged_at"],"type":"object"},"type":"array"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["attempts","request_id"],"type":"object"},"CompanyPage":{"description":"A page of the companies on a campaign, with where the campaign stands.","properties":{"attested_at":{"description":"When the list was signed off.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"campaign_state":{"$ref":"#/components/schemas/CampaignState"},"country_code":{"description":"The country searched.","example":"DE","pattern":"^[A-Z]{2}$","type":"string"},"counts":{"additionalProperties":{"minimum":0,"type":"integer"},"description":"How many companies are in each state.","type":"object"},"delivered_count":{"description":"How many enquiries were delivered.","minimum":0,"type":"integer"},"delivery_target":{"description":"How many delivered enquiries the campaign stops at.","nullable":true,"type":"integer"},"discovery_spent_cents":{"description":"How much the search cost. Whole US cents.","minimum":0,"type":"integer"},"finished_at":{"description":"When the campaign finished.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"language_code":{"description":"The language the enquiries are written in.","example":"de","type":"string"},"list_hash":{"description":"A fingerprint of the list as it is now.","nullable":true,"type":"string"},"order_shape":{"description":"How the order was placed.","nullable":true,"type":"string"},"page":{"$ref":"#/components/schemas/Page"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"reservation_released_at":{"description":"When the unspent reservation was released.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"reserved_cents":{"description":"How much is set aside. Whole US cents.","minimum":0,"type":"integer"},"serp_location_code":{"description":"The code of the town the search is anchored on.","nullable":true,"type":"integer"},"serp_location_name":{"description":"The name of that town.","nullable":true,"type":"string"},"signed_count":{"description":"How many companies are on the signed list.","minimum":0,"type":"integer"},"signed_list_hash":{"description":"A fingerprint of the list as it was signed.","nullable":true,"type":"string"},"solve_budget_cents":{"description":"How much may be spent on challenge solving. Whole US cents.","minimum":0,"type":"integer"},"solve_spent_cents":{"description":"How much was spent on challenge solving. Whole US cents.","minimum":0,"type":"integer"},"stop_reason":{"allOf":[{"$ref":"#/components/schemas/StopReason"}],"nullable":true},"targets":{"description":"The companies on this page.","items":{"$ref":"#/components/schemas/Company"},"type":"array"},"template_id":{"description":"The message the campaign sends.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"template_ids":{"description":"The messages it sends, in turn order: one to five, or up to twenty where that is offered. One when the campaign has a single message, none when it has none yet.","items":{"description":"A message.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"type":"array"},"template_name":{"description":"The name of that message.","nullable":true,"type":"string"},"total":{"description":"How many companies match the filter.","minimum":0,"type":"integer"},"towns":{"description":"How many companies each town gave.","items":{"description":"A town and its count.","properties":{"location_code":{"description":"The code of the town.","nullable":true,"type":"integer"},"location_name":{"description":"The name of the town.","nullable":true,"type":"string"},"n":{"description":"How many companies were found for it.","minimum":0,"type":"integer"}},"required":["location_code","location_name","n"],"type":"object"},"type":"array"},"unspent_cents":{"description":"How much of the reservation is still unspent. Whole US cents.","minimum":0,"type":"integer"},"work_in_progress":{"description":"The job running or queued now.","nullable":true,"properties":{"done":{"description":"How many companies it has done.","minimum":0,"type":"integer"},"kind":{"$ref":"#/components/schemas/JobKind"},"since":{"description":"When it started, or was queued.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"state":{"$ref":"#/components/schemas/JobState"},"total":{"description":"How many it has to do.","minimum":0,"type":"integer"}},"required":["kind","state","done","total","since"],"type":"object"}},"required":["campaign_id","campaign_state","country_code","language_code","serp_location_code","serp_location_name","stop_reason","delivery_target","delivered_count","finished_at","solve_budget_cents","order_shape","reserved_cents","discovery_spent_cents","solve_spent_cents","unspent_cents","reservation_released_at","attested_at","signed_list_hash","list_hash","signed_count","total","counts","template_id","template_name","template_ids","work_in_progress","towns","targets","request_id","page"],"type":"object"},"CompanyRestored":{"allOf":[{"description":"The campaign the company is back on.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"list_hash":{"description":"A fingerprint of the list as it is now.","nullable":true,"type":"string"}},"required":["campaign_id","list_hash"],"type":"object"},{"$ref":"#/components/schemas/Company"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}],"description":"The company, back on the campaign where it was."},"CompanyState":{"description":"Where a company on a campaign is. pending: found, its site not read yet. profiling: its site is being read. ready: a contact form was found and read. no_form: no contact form was found. excluded: on a do-not-contact list, or not a company site. suppressed: asked not to be written to. submitted: the enquiry was sent. blocked: the site stopped the send. failed: the send did not finish. waiting: held until a later step is due.","enum":["pending","profiling","ready","no_form","excluded","suppressed","submitted","blocked","failed","waiting"],"type":"string"},"CompanyStatus":{"description":"Where you stand with one company.","properties":{"campaigns":{"description":"The campaigns it is on, newest first.","items":{"description":"One campaign.","properties":{"added_at":{"description":"When the company was added to it.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"name":{"description":"Its name.","type":"string"},"state":{"$ref":"#/components/schemas/CompanyState"}},"required":["campaign_id","name","state","added_at"],"type":"object"},"type":"array"},"domain":{"description":"The company site.","example":"example.com","type":"string"},"excluded":{"allOf":[{"$ref":"#/components/schemas/ExcludedBy"}],"nullable":true},"first_sent_at":{"description":"When the first was sent.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"last_sent_at":{"description":"When the last was sent.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"responses":{"description":"The answers it gave, newest first.","items":{"description":"One answer.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"channel":{"$ref":"#/components/schemas/ResponseChannel"},"id":{"description":"The answer id.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"kind":{"$ref":"#/components/schemas/ResponseKind"},"note":{"description":"A note by whoever recorded it.","nullable":true,"type":"string"},"occurred_at":{"description":"When the company answered.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"}},"required":["id","kind","channel","occurred_at","campaign_id","note"],"type":"object"},"type":"array"},"sends":{"description":"How many enquiries were sent to it.","minimum":0,"type":"integer"},"status":{"$ref":"#/components/schemas/ContactStatus"}},"required":["domain","status","excluded","sends","first_sent_at","last_sent_at","campaigns","responses","request_id"],"type":"object"},"CompanyWeekNow":{"description":"One company's sends this week against the weekly cap.","properties":{"cap":{"description":"The most sends one company may have in a week.","minimum":0,"type":"integer"},"capped":{"description":"True when your account has used up the week for this company. Always false while on is false.","type":"boolean"},"domain":{"description":"The company site.","example":"example.com","type":"string"},"next_allowed_at":{"description":"When it may be sent to again. Null unless capped.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"on":{"description":"Whether the weekly cap is on for your account.","type":"boolean"},"reason_code":{"description":"Why it is held back. Null unless capped. WEEKLY_CAP: it already had cap sends this week.","enum":["WEEKLY_CAP"],"nullable":true,"type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"sends_this_week":{"description":"Sends to it this week that went out. With an X-Customer-Ref, that customer's only.","minimum":0,"type":"integer"},"time_zone":{"description":"Your account's time zone, which the week follows.","example":"Europe/Berlin","type":"string"},"week_ends_at":{"description":"Monday 00:00 of next week, in time_zone.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"week_starts_at":{"description":"Monday 00:00 of this week, in time_zone.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"}},"required":["domain","on","cap","sends_this_week","week_starts_at","week_ends_at","time_zone","capped","next_allowed_at","reason_code","request_id"],"type":"object"},"Confidence":{"description":"How sure we are the contact belongs to the company. high: found on the company's own contact page. medium: found elsewhere on the site.","enum":["high","medium"],"type":"string"},"Contact":{"description":"A contact harvested from a company site.","properties":{"confidence":{"$ref":"#/components/schemas/Confidence"},"domain":{"description":"The company site.","example":"example.com","type":"string"},"extension":{"description":"The phone extension, when there is one.","nullable":true,"type":"string"},"fetched_at":{"description":"When it was read.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"is_named_person":{"description":"Whether it belongs to a named person rather than a role.","type":"boolean"},"kind":{"$ref":"#/components/schemas/ContactKind"},"named_person":{"description":"The person it belongs to, when the site names one.","nullable":true,"type":"string"},"phone_type":{"allOf":[{"$ref":"#/components/schemas/PhoneType"}],"nullable":true},"source_url":{"description":"The page it was read from.","nullable":true,"type":"string"},"value":{"description":"The address or the number.","type":"string"}},"required":["domain","kind","value","named_person","is_named_person","source_url","fetched_at","confidence","phone_type","extension"],"type":"object"},"ContactKind":{"description":"What a harvested contact is. email: an email address. phone: a phone number.","enum":["email","phone"],"type":"string"},"ContactStatus":{"description":"Where you stand with a company. excluded: on a do-not-contact list. objected: asked not to be contacted. bounced: mail to it bounced. replied: wrote back. auto_reply: an automatic reply came. contacted: an enquiry was sent, no answer yet. new: never written to.","enum":["excluded","objected","bounced","replied","auto_reply","contacted","new"],"type":"string"},"CostEstimate":{"description":"What a campaign with these numbers would set aside, before it exists.","properties":{"currency":{"description":"Always usd.","example":"usd","type":"string"},"discovery_cost_cents":{"description":"What the search will cost. Whole US cents.","minimum":0,"type":"integer"},"discovery_target":{"description":"How many companies the search aims for. Null when no number was given.","nullable":true,"type":"integer"},"flat_price":{"description":"Whether the flat price applies (see Credit.flat_price).","type":"boolean"},"pay_only_when_sent":{"description":"Whether only a sent message is paid for (see Credit.pay_only_when_sent). When true per_delivery_micros is what each confirmed enquiry costs and nothing else is charged for the campaign. Names taken from the company register have their own price, charged when they are added to a list.","type":"boolean"},"per_delivery_cents":{"description":"What one delivered enquiry costs, in whole cents. Only while a whole-cent price is on file; prefer per_delivery_micros. Whole US cents.","minimum":0,"type":"integer"},"per_delivery_micros":{"description":"What one company costs, in micro-dollars: under the flat price each company with a contact form, otherwise each confirmed enquiry. Always present; the exact figure, where per_delivery_cents cannot carry a fraction of a cent.","type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"reserved_cents":{"description":"What the first search will set aside. Whole US cents.","minimum":0,"type":"integer"},"solve_budget_cents":{"description":"How much may be spent on challenge solving. Whole US cents.","minimum":0,"type":"integer"}},"required":["currency","solve_budget_cents","discovery_target","discovery_cost_cents","reserved_cents","per_delivery_micros","flat_price","pay_only_when_sent","request_id"],"type":"object"},"CostPreview":{"description":"What a campaign will cost before it runs.","properties":{"already_reserved_cents":{"description":"What is set aside already. Whole US cents.","minimum":0,"type":"integer"},"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"currency":{"description":"Always usd.","example":"usd","type":"string"},"discovery_cost_cents":{"description":"What the search will cost. Whole US cents.","minimum":0,"type":"integer"},"discovery_target":{"description":"How many companies the search aims for.","nullable":true,"type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"reserved_cents":{"description":"What will be set aside when it runs. Whole US cents.","minimum":0,"type":"integer"},"solve_budget_cents":{"description":"How much may be spent on challenge solving. Whole US cents.","minimum":0,"type":"integer"}},"required":["campaign_id","currency","solve_budget_cents","discovery_target","discovery_cost_cents","reserved_cents","already_reserved_cents","request_id"],"type":"object"},"Countries":{"description":"The countries a campaign can be run in.","properties":{"countries":{"description":"One row per country, sorted by code.","items":{"description":"A country.","properties":{"code":{"description":"ISO 3166-1 alpha-2.","example":"DE","pattern":"^[A-Z]{2}$","type":"string"},"language":{"description":"The language its companies are written to in.","example":"de","type":"string"}},"required":["code","language"],"type":"object"},"type":"array"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["countries","request_id"],"type":"object"},"CreatedVia":{"description":"How an endpoint was made. browser: on the screen. api: through this API. system: by us.","enum":["browser","api","system"],"type":"string"},"Credit":{"description":"The prepaid credit, for your account or for the customer named by X-Customer-Ref.","properties":{"available_micros":{"description":"The credit a new search or another campaign can use: balance_micros less held_micros.","type":"integer"},"balance_micros":{"description":"The credit left, in micro-dollars (1 USD = 1,000,000). It can end a few cents below zero when enquiries already under way finish after it ran out.","type":"integer"},"customer_ref":{"description":"The customer this credit belongs to. Null for the account itself.","nullable":true,"type":"string"},"enquiries_left":{"description":"How many more enquiries the credit pays for at the current price.","minimum":0,"type":"integer"},"fee_micros_per_website":{"description":"What each website found and added to a list costs now, in micro-dollars: the figure GET /lists/{id}/names answers, here before any list exists. A name with no website found costs nothing. 0 under the flat price, while website fees are off, or when the account does not pay in advance.","type":"integer"},"flat_price":{"description":"Whether the flat price applies: one price (unit_micros) per company whose website has a contact form, search and website check included, kept whether the form is then sent, blocked or never sent. When true, search_hold.fee_micros_per_company equals unit_micros and fee_micros_per_website is 0. When false the older price list applies: unit_micros per confirmed enquiry, a search fee per contactable company not sent to, and a website fee.","type":"boolean"},"held_cents":{"description":"held_micros in US cents.","minimum":0,"type":"integer"},"held_micros":{"description":"What open searches hold, in micro-dollars, until their companies are sent to: the sum of every open search_hold.left_micros, so always whole cents. 0 when searches hold nothing.","type":"integer"},"month":{"description":"The month the price steps count in, as YYYY-MM (UTC).","type":"string"},"pay_only_when_sent":{"description":"Whether only a sent message is paid for. When true the price (unit_micros) is charged for a confirmed enquiry and for nothing else: a company whose send failed, was blocked or never started costs nothing, and search_hold.fee_micros_per_company is 0. The hold still sets credit aside while a campaign runs and releases all that is left. False while the flat price is off.","type":"boolean"},"prepaid":{"description":"Whether this account pays in advance. When false nothing is charged or held back.","type":"boolean"},"price_steps":{"description":"The price per confirmed enquiry, by how many were sent this month.","items":{"description":"A price step.","properties":{"from":{"description":"From this many confirmed enquiries in the month.","minimum":0,"type":"integer"},"unit_micros":{"description":"The price of each, in micro-dollars.","type":"integer"}},"required":["from","unit_micros"],"type":"object"},"type":"array"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"search_hold":{"description":"The rule for what a search holds.","properties":{"fee_micros_per_company":{"description":"What the settle charges per company that could be written to and was not paid by a confirmed enquiry, in micro-dollars. Under the flat price it is the enquiry price (unit_micros), or 0 when pay_only_when_sent is true; otherwise the search fee. 0 means no fee.","type":"integer"},"free_share":{"description":"Always 1: the search fee has no threshold, it is charged per company not sent to. Kept for older callers.","type":"number"},"hold_days":{"description":"After how many days an open hold is settled if its campaign has not ended.","minimum":0,"type":"integer"},"on":{"description":"Whether searches hold credit. When true a search for N companies needs N times the enquiry price available, and no daily cap applies to contacts.","type":"boolean"}},"required":["on","free_share","fee_micros_per_company","hold_days"],"type":"object"},"sent_this_month":{"description":"How many confirmed enquiries were charged this month (UTC).","minimum":0,"type":"integer"},"unit_micros":{"description":"The price of the next confirmed enquiry, in micro-dollars. Under the flat price it is also what each company with a contact form costs when the campaign's hold settles, unless pay_only_when_sent is true.","type":"integer"}},"required":["prepaid","customer_ref","balance_micros","unit_micros","flat_price","pay_only_when_sent","sent_this_month","enquiries_left","held_micros","held_cents","available_micros","search_hold","fee_micros_per_website","month","price_steps","request_id"],"type":"object"},"CreditCardRemoved":{"allOf":[{"description":"What removing the saved card did.","properties":{"auto_top_up_turned_off":{"description":"Whether automatic top-up was on and is now off.","type":"boolean"},"removed":{"description":"Whether a card was saved and is now removed. False when none was.","type":"boolean"}},"required":["removed","auto_top_up_turned_off"],"type":"object"},{"$ref":"#/components/schemas/CreditSettingsDetail"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}],"description":"The saved card was removed, and automatic top-up with it; the settings as they are now."},"CreditEntryPage":{"description":"A page of the credit ledger, for your account or for the customer named by X-Customer-Ref.","properties":{"customer_ref":{"description":"The customer this ledger belongs to. Null for the account itself.","nullable":true,"type":"string"},"entries":{"description":"The entries on this page, newest first.","items":{"description":"One top-up or charge.","properties":{"amount_micros":{"description":"The amount, in micro-dollars (1 USD = 1,000,000). Positive for a top-up, negative for a charge.","type":"integer"},"at":{"description":"When it was recorded.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"balance_after_micros":{"description":"The credit left after this entry, in micro-dollars.","type":"integer"},"campaign_id":{"description":"The campaign a search fee, or a charge recorded from 2026-10-27, was for. Null otherwise.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"id":{"description":"The entry.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"kind":{"description":"What it was. topup: credit bought. charge: a confirmed enquiry paid for. search_fee: a search sent to below the free share. website_fee: a website found from a company name. website_fee_back: a website fee returned because the website was sent an enquiry. registry_fee: companies read from the company registry API. credit_back: credit our team gave back when something went wrong on our side. credit_removed: credit our team removed because it was added by mistake.","enum":["topup","charge","search_fee","website_fee","website_fee_back","registry_fee","credit_back","credit_removed"],"type":"string"},"note":{"description":"A note recorded with the entry.","nullable":true,"type":"string"},"payment_ref":{"description":"The payment a top-up came from. Null for a charge.","nullable":true,"type":"string"},"submission_id":{"description":"The enquiry a charge paid for. Null for a top-up.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"}},"required":["id","at","kind","amount_micros","balance_after_micros","payment_ref","submission_id","campaign_id","note"],"type":"object"},"type":"array"},"limit":{"description":"How many rows were asked for at most.","type":"integer"},"offset":{"description":"How many rows were skipped.","type":"integer"},"page":{"$ref":"#/components/schemas/Page"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"total":{"description":"How many rows there are in all.","minimum":0,"type":"integer"}},"required":["customer_ref","entries","total","limit","offset","request_id","page"],"type":"object"},"CreditForecast":{"description":"When credit runs out at the current pace, for your account or for the customer named by X-Customer-Ref.","properties":{"as_of":{"description":"When the forecast was made.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"auto_top_up":{"description":"Whether automatic top-up is on and has not failed.","type":"boolean"},"available_micros":{"description":"The credit available now (balance less what open searches hold), in micro-dollars (1 USD = 1,000,000).","type":"integer"},"campaigns":{"description":"The five running or signed campaigns that need the most, most first.","items":{"description":"One campaign.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"companies_left":{"description":"Its companies not yet written to.","minimum":0,"type":"integer"},"cost_micros":{"description":"What they will cost, in micro-dollars (1 USD = 1,000,000).","minimum":0,"type":"integer"},"name":{"description":"Its name.","type":"string"}},"required":["campaign_id","name","companies_left","cost_micros"],"type":"object"},"type":"array"},"committed_micros":{"description":"What those companies will cost at unit_micros, in micro-dollars (1 USD = 1,000,000).","minimum":0,"type":"integer"},"companies_left":{"description":"Companies running or signed campaigns have not written to yet.","minimum":0,"type":"integer"},"customer_ref":{"description":"The customer this credit belongs to. Null for the account itself.","nullable":true,"type":"string"},"daily_spend_micros":{"description":"The pace: the higher of the 7-day and the 30-day daily average, in micro-dollars (1 USD = 1,000,000).","minimum":0,"type":"integer"},"level":{"description":"How urgent it is. ok: nothing to do. soon: runs out within 7 days, or the campaigns need more than is left. critical: does not pay for the next enquiry, or runs out within 2 days.","enum":["ok","soon","critical"],"type":"string"},"on":{"description":"Whether the forecast is shown for your account yet.","type":"boolean"},"prepaid":{"description":"Whether this account pays in advance. When false, level is always ok and there is no date.","type":"boolean"},"reason_code":{"description":"Why the level is not ok. Null when ok. NEXT_ENQUIRY: the credit does not pay for the next enquiry. RUNS_OUT_2_DAYS: runs out within 2 days. RUNS_OUT_7_DAYS: runs out within 7 days. CAMPAIGNS_NEED_MORE: the running campaigns need more than is available.","enum":["NEXT_ENQUIRY","RUNS_OUT_2_DAYS","RUNS_OUT_7_DAYS","CAMPAIGNS_NEED_MORE"],"nullable":true,"type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"runs_out_at":{"description":"When credit runs out at this pace. Now when nothing is left; null when nothing was spent in 30 days or prepaid is false.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"runs_out_in_days":{"description":"Days until then, rounded down to one decimal (1.96 shows as 1.9). Null when runs_out_at is null.","nullable":true,"type":"number"},"shortfall_micros":{"description":"How much more credit the campaigns need than is available; 0 when it is enough.","minimum":0,"type":"integer"},"spend_30d_micros":{"description":"What was charged in the last 30 days, in micro-dollars (1 USD = 1,000,000).","minimum":0,"type":"integer"},"spend_7d_micros":{"description":"What was charged in the last 7 days, in micro-dollars (1 USD = 1,000,000).","minimum":0,"type":"integer"},"unit_micros":{"description":"The price of one enquiry now, in micro-dollars (1 USD = 1,000,000).","type":"integer"}},"required":["on","prepaid","customer_ref","available_micros","unit_micros","spend_7d_micros","spend_30d_micros","daily_spend_micros","companies_left","committed_micros","shortfall_micros","runs_out_at","runs_out_in_days","level","reason_code","auto_top_up","campaigns","as_of","request_id"],"type":"object"},"CreditSettings":{"allOf":[{"$ref":"#/components/schemas/CreditSettingsDetail"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"CreditSettingsChanged":{"allOf":[{"$ref":"#/components/schemas/CreditSettingsDetail"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"CreditSettingsDetail":{"description":"Automatic top-up, the low-balance e-mail and the saved card, for your account or for the customer named by X-Customer-Ref.","properties":{"auto_top_up":{"description":"Automatic top-up from the saved card.","properties":{"amount_cents":{"description":"How much each automatic top-up adds, in cents.","nullable":true,"type":"integer"},"below_cents":{"description":"Top up when available credit falls under this, in cents.","nullable":true,"type":"integer"},"enabled":{"description":"Whether automatic top-up is on.","type":"boolean"},"failed_at":{"description":"When the last automatic top-up was refused; it turned automatic top-up off. Null when it did not fail.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"failed_reason":{"description":"Why it was refused, in words a customer can read.","nullable":true,"type":"string"},"last_at":{"description":"When the last automatic top-up went through.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"month_limit_reached_at":{"description":"When this month's limit first stopped an automatic top-up. Null when it has not this month.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"month_topped_up_cents":{"description":"What automatic top-up has added, or is adding, this UTC month, in cents.","minimum":0,"type":"integer"},"monthly_limit_cents":{"description":"The most automatic top-up may add in one UTC month, in cents. Null when there is no limit.","nullable":true,"type":"integer"},"skipped_reason":{"description":"Why automatic top-up is not running now, while it is enabled. Null when nothing stops it. monthly_limit_reached: the next top-up would pass this month's limit; it runs again next month, or after the limit is raised.","enum":["monthly_limit_reached"],"nullable":true,"type":"string"},"switch_on":{"description":"Whether automatic top-up is switched on for the service at all. Off, no card is charged whatever enabled says.","type":"boolean"}},"required":["enabled","switch_on","below_cents","amount_cents","failed_at","failed_reason","last_at","monthly_limit_cents","month_topped_up_cents","month_limit_reached_at","skipped_reason"],"type":"object"},"available_cents":{"description":"The credit a new search or campaign can use now, in cents: the balance less what open searches hold.","type":"integer"},"card":{"description":"The saved card, the one automatic top-up charges: the card the newest card top-up saved, or a card saved in its place since. Null until a top-up by card, and after the card is removed.","nullable":true,"properties":{"brand":{"description":"The card brand, such as visa.","nullable":true,"type":"string"},"exp_month":{"description":"The expiry month.","nullable":true,"type":"integer"},"exp_year":{"description":"The expiry year.","nullable":true,"type":"integer"},"last4":{"description":"The last four digits.","nullable":true,"type":"string"},"saved_at":{"description":"When the card was saved.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"}},"required":["brand","last4","exp_month","exp_year","saved_at"],"type":"object"},"card_change_switch_on":{"description":"Whether a new card can be saved in place of the saved card now.","type":"boolean"},"card_remove_switch_on":{"description":"Whether removing the saved card (DELETE /credit/card) is offered now.","type":"boolean"},"currency":{"description":"Always USD.","type":"string"},"customer_ref":{"description":"The customer these settings belong to. Null for the account itself.","nullable":true,"type":"string"},"low_balance_email_cents":{"description":"E-mail when available credit falls under this, in cents. Null when the e-mail is off.","nullable":true,"type":"integer"},"low_balance_email_switch_on":{"description":"Whether the low-balance e-mail is switched on for the service at all.","type":"boolean"},"notify_email":{"description":"The address billing e-mails go to.","nullable":true,"type":"string"},"updated_at":{"description":"When these settings were last changed. Null when never set.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"}},"required":["customer_ref","currency","available_cents","auto_top_up","low_balance_email_cents","low_balance_email_switch_on","notify_email","card","card_change_switch_on","card_remove_switch_on","updated_at"],"type":"object"},"CreditStatementPage":{"description":"A page of the credit statement, for your account or for the customer named by X-Customer-Ref.","properties":{"currency":{"description":"Always USD.","type":"string"},"customer_ref":{"description":"The customer this statement belongs to. Null for the account itself.","nullable":true,"type":"string"},"data":{"description":"The lines on this page, newest first.","items":{"description":"One top-up, one search fee, or one campaign's charges on one UTC day.","properties":{"amount_micros":{"description":"The amount, in micro-dollars (1 USD = 1,000,000). Positive for a top-up, negative for a charge or a fee.","type":"integer"},"at":{"description":"When it was recorded; for a day of charges, the last charge of that day.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"balance_after_micros":{"description":"The credit left after this line, in micro-dollars.","type":"integer"},"campaign":{"description":"The campaign a charge or a fee was for.","nullable":true,"properties":{"id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"name":{"description":"Its name.","nullable":true,"type":"string"}},"required":["id","name"],"type":"object"},"currency":{"description":"Always USD.","type":"string"},"deliveries":{"description":"How many enquiries a charge line paid for. Null for other lines.","minimum":0,"nullable":true,"type":"integer"},"description":{"description":"A short English description, such as Credit added, 12 enquiries sent or 30 websites found. Show your own words if you prefer.","type":"string"},"id":{"description":"The line. For a day of charges, the same id each time it is read.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"kind":{"description":"What it was. topup: credit bought. charge: enquiries paid for. search_fee: a fee for companies found and not sent to. website_fee: websites found from company names that day. website_fee_back: website fees returned that day, because those websites were sent an enquiry. registry_fee: companies read from the company registry API that day. credit_back: credit our team gave back when something went wrong on our side. credit_removed: credit our team removed because it was added by mistake.","enum":["topup","charge","search_fee","website_fee","website_fee_back","registry_fee","credit_back","credit_removed"],"type":"string"},"payment_ref":{"description":"The payment a top-up came from. Null otherwise.","nullable":true,"type":"string"},"receipt_url":{"description":"The card receipt of a top-up. Null until the payment sent one, and for other lines.","nullable":true,"type":"string"},"units":{"description":"How many things the line is about, as a number: the enquiries a charge paid for (the same as deliveries), the websites found, the websites whose fee came back, the companies read from the registry. Null for a top-up and for a search fee.","minimum":0,"nullable":true,"type":"integer"}},"required":["id","at","kind","currency","amount_micros","balance_after_micros","deliveries","units","campaign","description","payment_ref","receipt_url"],"type":"object"},"type":"array"},"from":{"description":"The from that was asked for. Null when none was.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"limit":{"description":"How many rows were asked for at most.","type":"integer"},"offset":{"description":"How many rows were skipped.","type":"integer"},"page":{"$ref":"#/components/schemas/Page"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"to":{"description":"The to that was asked for. Null when none was.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"total":{"description":"How many rows there are in all.","minimum":0,"type":"integer"}},"required":["customer_ref","currency","data","from","to","total","limit","offset","request_id","page"],"type":"object"},"CreditSummary":{"description":"One UTC month of credit, for your account or for the customer named by X-Customer-Ref. opening_balance_micros + added_micros - spent_micros + corrected_micros = closing_balance_micros.","properties":{"added_cents":{"description":"The credit bought in the month. Whole US cents.","minimum":0,"type":"integer"},"added_micros":{"description":"The credit bought in the month, in micro-dollars (1 USD = 1,000,000).","minimum":0,"type":"integer"},"closing_balance_micros":{"description":"The credit at the end of the month, or now for this month, in micro-dollars.","type":"integer"},"complete":{"description":"Whether the month has ended. False for this month, whose numbers still change.","type":"boolean"},"corrected_cents":{"description":"Credit our team gave back less credit it removed in the month, in whole US cents. Neither bought nor spent; below zero when more was removed. Zero in most months.","type":"integer"},"corrected_micros":{"description":"The same, in micro-dollars.","type":"integer"},"currency":{"description":"Always USD.","type":"string"},"customer_ref":{"description":"The customer this summary belongs to. Null for the account itself.","nullable":true,"type":"string"},"from":{"description":"The start of the month, UTC.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"month":{"description":"The month, as YYYY-MM.","pattern":"^[0-9]{4}-[0-9]{2}$","type":"string"},"opening_balance_micros":{"description":"The credit at the start of the month, in micro-dollars.","type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"spent_by_kind_micros":{"additionalProperties":{"type":"integer"},"description":"Each kind's share of spent, in micro-dollars, keyed by the statement's kind: charge, search_fee, website_fee, registry_fee, and website_fee_back below zero for the fees that came back. Kinds with nothing in the month are left out.","type":"object"},"spent_cents":{"description":"Every charge and fee of the month less the website fees that came back, in whole US cents. Below zero only when more fees came back than were charged that month.","type":"integer"},"spent_micros":{"description":"The same, in micro-dollars.","type":"integer"},"to":{"description":"The start of the next month, UTC. The month covers from up to, not including, to.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"}},"required":["customer_ref","currency","month","from","to","complete","added_cents","added_micros","spent_cents","spent_micros","spent_by_kind_micros","corrected_cents","corrected_micros","opening_balance_micros","closing_balance_micros","request_id"],"type":"object"},"CustomerApiKey":{"description":"An API key that acts for one customer. The secret is never part of it.","properties":{"created_at":{"description":"When it was made.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"created_by":{"additionalProperties":true,"description":"Always null: a customer key is made for the customer, not by a named person.","nullable":true,"type":"object"},"expires_at":{"description":"When it stops working.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"id":{"description":"The key.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"last_used_at":{"description":"When it was last used. Null when never.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"name":{"description":"What the key is called.","type":"string"},"prefix":{"description":"The first characters of the key, enough to tell keys apart.","type":"string"},"revoked_at":{"description":"When it was revoked or rotated. Null while it works.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"revoked_reason":{"description":"Why it was revoked: the reason given, or rotated.","nullable":true,"type":"string"},"rotated_from":{"description":"The key this one replaced, when it was made by a rotation.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"scopes":{"description":"What the key may do: read, write, signoff, send, webhooks.","items":{"type":"string"},"type":"array"}},"required":["id","name","prefix","scopes","created_at","created_by","last_used_at","expires_at","revoked_at","revoked_reason","rotated_from"],"type":"object"},"CustomerApiKeyMade":{"description":"The key that was made, with its secret.","properties":{"key":{"$ref":"#/components/schemas/CustomerApiKey"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"secret":{"description":"The whole key. Shown in this answer only, never again.","type":"string"}},"required":["key","secret","request_id"],"type":"object"},"CustomerApiKeyPage":{"description":"One customer's API keys, newest first.","properties":{"data":{"description":"The keys on this page.","items":{"$ref":"#/components/schemas/CustomerApiKey"},"type":"array"},"limit":{"description":"How many rows were asked for at most.","type":"integer"},"offset":{"description":"How many rows were skipped.","type":"integer"},"page":{"$ref":"#/components/schemas/Page"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"total":{"description":"How many rows there are in all.","minimum":0,"type":"integer"}},"required":["data","total","limit","offset","request_id","page"],"type":"object"},"CustomerApiKeyRevoked":{"description":"The key that was revoked.","properties":{"key":{"$ref":"#/components/schemas/CustomerApiKey"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["key","request_id"],"type":"object"},"CustomerApiKeyRotated":{"description":"The new key, with its secret. The old key no longer works.","properties":{"key":{"$ref":"#/components/schemas/CustomerApiKey"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"secret":{"description":"The whole new key. Shown in this answer only, never again.","type":"string"}},"required":["key","secret","request_id"],"type":"object"},"CustomerControl":{"allOf":[{"$ref":"#/components/schemas/CustomerControlState"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"CustomerControlChanged":{"allOf":[{"$ref":"#/components/schemas/CustomerControlState"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"CustomerControlState":{"description":"One customer's pause and limits, and what it has sent.","properties":{"customer_ref":{"description":"The customer.","type":"string"},"daily_cap":{"description":"The most attempts per UTC day, or null for no limit.","nullable":true,"type":"integer"},"locked":{"description":"Paused by Contact Form Outreach: only Contact Form Outreach can resume it.","type":"boolean"},"monthly_cap":{"description":"The most attempts per UTC month, or null for no limit.","nullable":true,"type":"integer"},"sent_this_month":{"description":"Attempts so far this month, UTC.","type":"integer"},"sent_today":{"description":"Attempts so far today, UTC.","type":"integer"},"suspended":{"description":"Whether nothing is being sent for this customer.","type":"boolean"},"suspended_at":{"description":"When it was paused.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"suspended_reason":{"description":"Why it was paused.","nullable":true,"type":"string"},"updated_at":{"description":"When this was last changed.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"}},"required":["customer_ref","suspended","suspended_at","suspended_reason","locked","daily_cap","monthly_cap","sent_today","sent_this_month","updated_at"],"type":"object"},"DeliveryState":{"description":"Where a webhook delivery is. pending: waiting to be sent. sending: being sent. delivered: your endpoint answered with a 2xx. failed: given up.","enum":["pending","sending","delivered","failed"],"type":"string"},"DigestQueued":{"description":"The test digest that was queued to you.","properties":{"counts":{"description":"What it will report.","properties":{"bounced":{"description":"Enquiries that bounced.","minimum":0,"type":"integer"},"follow_ups_due":{"description":"Follow-ups due that day.","minimum":0,"type":"integer"},"objected":{"description":"Companies that asked not to be contacted.","minimum":0,"type":"integer"},"replies":{"description":"Replies that came in.","minimum":0,"type":"integer"},"sent":{"description":"Enquiries that went out.","minimum":0,"type":"integer"},"unowned_replies":{"description":"Replies from companies nobody looks after.","minimum":0,"type":"integer"}},"required":["replies","bounced","objected","follow_ups_due","sent","unowned_replies"],"type":"object"},"digest_id":{"description":"The digest.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"for_date":{"description":"The day it reports on.","example":"2026-09-17","format":"date","type":"string"},"recipient":{"description":"The e-mail address it goes to: the one on the profile this key acts as.","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["digest_id","recipient","for_date","counts","request_id"],"type":"object"},"DisabledReason":{"description":"Why an endpoint is off. manual: switched off by hand. failing: switched off after failing for too long.","enum":["manual","failing"],"type":"string"},"DiscoveryEnd":{"description":"How a campaign's newest search ended. When found is less than bought, reason says why; GET /v1/campaigns/{id}/extra-search says what a wider search would cost.","properties":{"advice":{"description":"What would help. wait: the search is running or websites are still being checked; nothing to do yet. widen: every town and keyword was searched; widen the area or the keywords, or see /extra-search. top_up: the search budget ran out; add credit. none: the goal is met.","enum":["wait","widen","top_up","none"],"type":"string"},"bought":{"description":"How many companies the campaign asked for (discovery_target). Null when it asked for no number; the search then stops at 500.","minimum":1,"nullable":true,"type":"integer"},"found":{"description":"How many companies the campaign holds.","minimum":0,"type":"integer"},"goal":{"description":"How many the campaign asked for. Null when it asked for no number.","minimum":1,"nullable":true,"type":"integer"},"have":{"description":"How many it has towards the goal: websites for a websites goal, companies with a contact form for a with_form goal.","minimum":0,"type":"integer"},"kind":{"description":"What the goal counts. websites: websites found. with_form: companies with a contact form we can write to.","enum":["websites","with_form"],"type":"string"},"more":{"description":"What the newest finished search left behind. With this feature on, a campaign that is still short after a search that ran dry searches the same towns and keywords again while either is true: the register first, which costs nothing, then the service's next page. It never adds towns by itself.","properties":{"pages":{"description":"the service still had a full page, so there is a next page to ask for.","type":"boolean"},"register":{"description":"The company register matched more companies than the search had room for; the next batch costs nothing.","type":"boolean"}},"required":["pages","register"],"type":"object"},"reason":{"description":"Why the search ended. searching: the search is queued or running. goal_met: the campaign has the companies it asked for. search_exhausted: every town and keyword was searched and there were no more companies to find. budget_reached: the money set aside for searching ran out before the search was done. checking: websites are still being checked for a contact form; the goal counts companies with one, so the count is not final.","enum":["searching","goal_met","search_exhausted","budget_reached","checking"],"type":"string"},"searched":{"description":"What the search covered.","properties":{"keywords":{"description":"How many keywords were searched.","minimum":0,"type":"integer"},"towns":{"description":"How many towns were searched. 0 means the whole country.","minimum":0,"type":"integer"}},"required":["towns","keywords"],"type":"object"},"short":{"description":"How many it is short of the goal: goal minus have, never below 0. So a screen can say \"we found 61 of 100\".","minimum":0,"type":"integer"}},"required":["found","bought","reason","searched","kind","goal","have","short","advice","more"],"type":"object"},"DoNotContactAdded":{"description":"What adding to the do-not-contact list did, as counts.","properties":{"added":{"description":"How many were added.","minimum":0,"type":"integer"},"already":{"description":"How many were on the list already.","minimum":0,"type":"integer"},"invalid":{"description":"How many were not a domain.","minimum":0,"type":"integer"},"invalid_lines":{"description":"The lines that were not a domain.","items":{"type":"string"},"type":"array"},"offered":{"description":"How many lines were offered.","minimum":0,"type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"seen":{"description":"How many distinct lines there were.","minimum":0,"type":"integer"},"targets_closed":{"description":"How many companies on open campaigns were closed by this.","minimum":0,"type":"integer"},"total":{"description":"How many domains your list has now.","minimum":0,"type":"integer"},"valid":{"description":"How many were a domain.","minimum":0,"type":"integer"}},"required":["offered","seen","invalid","invalid_lines","valid","added","already","targets_closed","total","request_id"],"type":"object"},"DoNotContactPage":{"description":"A page of the do-not-contact list.","properties":{"exclusions":{"description":"The rows on this page.","items":{"description":"One domain on the list.","properties":{"added_at":{"description":"When it was added.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"domain":{"description":"The domain.","example":"example.com","type":"string"},"note":{"description":"A note by whoever added it.","nullable":true,"type":"string"},"reason":{"$ref":"#/components/schemas/ExclusionReason"}},"required":["domain","reason","note","added_at"],"type":"object"},"type":"array"},"limit":{"description":"How many rows were asked for at most.","type":"integer"},"offset":{"description":"How many rows were skipped.","type":"integer"},"page":{"$ref":"#/components/schemas/Page"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"total":{"description":"How many rows there are in all.","minimum":0,"type":"integer"}},"required":["exclusions","total","limit","offset","request_id","page"],"type":"object"},"DoNotContactRemoved":{"description":"The domain that was taken off the list.","properties":{"domain":{"description":"The domain.","example":"example.com","type":"string"},"removed":{"description":"How many entries were removed.","minimum":0,"type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["domain","removed","request_id"],"type":"object"},"DomainRemoved":{"description":"The domain that was removed.","properties":{"removed":{"description":"The domain.","example":"example.com","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["removed","request_id"],"type":"object"},"DomainsAdded":{"description":"What adding did, as counts.","properties":{"added":{"description":"How many were added.","minimum":0,"type":"integer"},"already_on_the_list":{"description":"How many were on it already.","minimum":0,"type":"integer"},"list_id":{"description":"The list.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"not_a_domain":{"description":"How many were not a domain.","minimum":0,"type":"integer"},"offered":{"description":"How many lines were offered.","minimum":0,"type":"integer"},"repeated":{"description":"How many were offered more than once.","minimum":0,"type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"total":{"description":"How many domains the list has now.","minimum":0,"type":"integer"},"understood":{"description":"How many were read as a domain.","minimum":0,"type":"integer"}},"required":["list_id","offered","understood","added","already_on_the_list","not_a_domain","repeated","total","request_id"],"type":"object"},"DomainsRemoved":{"description":"What removing did, as counts.","properties":{"not_a_domain":{"description":"How many were not a domain.","minimum":0,"type":"integer"},"not_on_the_list":{"description":"How many were not on the list.","minimum":0,"type":"integer"},"removed":{"description":"How many were removed.","minimum":0,"type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["removed","not_on_the_list","not_a_domain","request_id"],"type":"object"},"Draft":{"description":"A draft the writer was asked for. Text to read, change and save as a message; nothing is sent from it.","properties":{"body":{"description":"The message written, without a closing line: that is added at sending. With this feature on it carries {{company_name}} and may carry {{company_domain}} and {{country}}, filled per company.","nullable":true,"type":"string"},"draft_id":{"description":"The draft.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"failed_reason":{"description":"Why it could not be written, in one plain sentence, once state is failed.","nullable":true,"type":"string"},"goal":{"description":"The goal asked for, for a draft.","nullable":true,"type":"string"},"goal_text":{"description":"What was wanted from the companies, in the customer's words.","nullable":true,"type":"string"},"house_style_revision":{"description":"The house style revision it was written with; null when none.","minimum":1,"nullable":true,"type":"integer"},"instruction":{"description":"What was to be changed, for a revision; for a draft, the customer's instruction.","nullable":true,"type":"string"},"kind":{"description":"draft: written from the website and the goal. revise: an existing message changed as asked.","enum":["draft","revise"],"type":"string"},"language":{"description":"The language it was written in.","example":"de","nullable":true,"type":"string"},"length":{"description":"The length asked for: normal or short.","enum":["normal","short"],"nullable":true,"type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"requested_at":{"description":"When it was asked for.","format":"date-time","type":"string"},"sender_id":{"description":"The sender the draft is for. Null when it was asked for without one.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"short_body":{"description":"The short version written, or null.","nullable":true,"type":"string"},"state":{"description":"wanted until the writer answers; written when the texts are there; failed when it could not write it.","enum":["wanted","written","failed"],"type":"string"},"subject":{"description":"The subject written, once state is written.","nullable":true,"type":"string"},"tone":{"description":"The tone asked for: formal, friendly or direct. Null when asked while this feature was off.","enum":["formal","friendly","direct"],"nullable":true,"type":"string"},"website":{"description":"The website the writer read, for a draft.","nullable":true,"type":"string"},"written_at":{"description":"When the writer answered.","format":"date-time","nullable":true,"type":"string"}},"required":["draft_id","kind","state","sender_id","language","website","goal","goal_text","instruction","tone","length","house_style_revision","subject","body","short_body","failed_reason","requested_at","written_at","request_id"],"type":"object"},"DraftQueued":{"description":"The writer was asked for a draft. Read it at Location.","properties":{"draft_id":{"description":"The draft to read at GET /templates/drafts/{id}.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"offered":{"description":"Whether drafts are offered. False while this feature is off for your account, and nothing is queued.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"state":{"description":"wanted: the writer has it in its queue.","enum":["wanted"],"nullable":true,"type":"string"}},"required":["offered","draft_id","state","request_id"],"type":"object"},"ErasureCancelled":{"description":"The withdrawn request.","properties":{"cancelled_at":{"description":"When it was withdrawn.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"id":{"description":"The request.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"state":{"description":"cancelled.","type":"string"}},"required":["id","state","cancelled_at","request_id"],"type":"object"},"ErasureRequested":{"description":"The erasure request.","properties":{"already":{"description":"Whether an open request existed already, in which case that one is answered.","type":"boolean"},"due_at":{"description":"When it runs, seven days after the request.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"id":{"description":"The request.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"requested_at":{"description":"When it was asked.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"state":{"description":"pending.","type":"string"}},"required":["id","already","state","requested_at","due_at","request_id"],"type":"object"},"ErasureStatus":{"description":"Where your team's erasure request stands.","properties":{"attempts":{"description":"How many runs it took.","minimum":0,"type":"integer"},"cancelled_at":{"description":"When it was withdrawn.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"due_at":{"description":"When it runs, seven days after the request.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"executed_at":{"description":"When it ran to completion.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"id":{"description":"The request.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"proof":{"additionalProperties":true,"description":"What still carries the team after the run, table by table: complete, references_kept, kept, left.","nullable":true,"type":"object"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"requested_at":{"description":"When it was asked.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"state":{"description":"The state. none: nothing was asked. pending: waiting for the due date. cancelled: withdrawn before it ran. executed: run to completion, with the proof. incomplete: a run left rows behind and runs again.","enum":["none","pending","cancelled","executed","incomplete"],"type":"string"}},"required":["state","request_id"],"type":"object"},"Error":{"properties":{"error":{"properties":{"code":{"description":"What went wrong, in one word your code can branch on.","type":"string"},"details":{"description":"Present when there is more to say, such as the parameter at fault.","type":"object"},"kind":{"$ref":"#/components/schemas/RefusalKind","description":"Present on the few refusals a program is expected to react to."},"message":{"description":"The same thing in a sentence you can show a person.","type":"string"},"request_id":{"description":"Quote this if you ask us about the request.","type":"string"},"status":{"description":"The HTTP status, repeated here for readers that only keep the body.","type":"integer"},"timestamp":{"format":"date-time","type":"string"}},"required":["code","message","status","timestamp","request_id"],"type":"object"}},"required":["error"],"type":"object"},"Event":{"description":"Something that happened, as it is posted to an endpoint.","properties":{"actor":{"description":"Who caused it, in GET /v1/events and GET /v1/events/{id}; not in a webhook post. Null for events before 30 October 2026, when this was not recorded.","nullable":true,"properties":{"api_key_id":{"description":"The API key, when type is api_key; for a person, the key of the app they acted through, if any.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"name":{"description":"The person's name or the API key's name, as it is now. Null for system, for a person without a name, and for a person when the caller is a customer key.","nullable":true,"type":"string"},"type":{"description":"Who it was. user: a person in the app. api_key: a call made with an API key. system: the service itself, with nobody asking at that moment.","enum":["user","api_key","system"],"type":"string"},"user_id":{"description":"The person, when type is user.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"}},"required":["type","user_id","name","api_key_id"],"type":"object"},"data":{"description":"What the event is about.","properties":{"amount_cents":{"description":"credit.added and auto_top_up.*: the amount, in US cents.","minimum":0,"type":"integer"},"brand":{"description":"card.updated and card.removed: the card brand, such as visa.","nullable":true,"type":"string"},"campaign_id":{"description":"The campaign it belongs to.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"changes":{"description":"billing_settings.updated: the fields that changed, by their names in PUT /credit/settings.","items":{"description":"A field name.","example":"auto_top_up_amount_cents","type":"string"},"type":"array"},"exp_month":{"description":"card.updated: the new card's expiry month.","nullable":true,"type":"integer"},"exp_year":{"description":"card.updated: the new card's expiry year.","nullable":true,"type":"integer"},"id":{"description":"The id of that thing.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"kind":{"description":"The kind of the thing, when it has one. For credit.added how the credit came: card, auto_top_up or staff. For member.* and invitation.* the role. For inbound_match.* what the mail is: replied, auto_reply, bounced, objected or unmatched.","nullable":true,"type":"string"},"last4":{"description":"card.updated and card.removed: the last four digits.","nullable":true,"type":"string"},"object":{"description":"What kind of thing changed.","example":"campaign","type":"string"},"previous_role":{"description":"member.role_changed: the role before.","type":"string"},"previous_state":{"description":"The state it left.","nullable":true,"type":"string"},"previous_target_id":{"description":"inbound_match.matched: the company it was tied to before; null when it had none.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"reason":{"description":"auto_top_up.failed and auto_top_up.skipped: why. payment_refused: the card refused the payment; automatic top-up is now off. monthly_limit_reached: the top-up would pass this month's ceiling.","enum":["payment_refused","monthly_limit_reached"],"type":"string"},"send_count":{"description":"invitation.sent: 1 the first time, more when it was sent again.","minimum":1,"type":"integer"},"state":{"description":"The state it moved to.","nullable":true,"type":"string"},"target_id":{"description":"inbound_match.*: the company the mail is tied to, if any.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"}},"required":["object","id","campaign_id","state","previous_state"],"type":"object"},"id":{"description":"The event id.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"timestamp":{"description":"When it happened.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"type":{"description":"The event type: the thing and the state it moved to.","example":"campaign.running","type":"string"}},"required":["id","type","timestamp","data"],"type":"object"},"EventDetail":{"allOf":[{"$ref":"#/components/schemas/Event"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"EventPage":{"description":"A page of events.","properties":{"events":{"description":"The events on this page, newest first.","items":{"$ref":"#/components/schemas/Event"},"type":"array"},"limit":{"description":"How many rows were asked for at most.","type":"integer"},"offset":{"description":"How many rows were skipped.","type":"integer"},"page":{"$ref":"#/components/schemas/Page"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"total":{"description":"How many rows there are in all.","minimum":0,"type":"integer"}},"required":["events","total","limit","offset","request_id","page"],"type":"object"},"EventTypes":{"description":"The event types an endpoint can receive.","properties":{"event_types":{"description":"Every type.","items":{"description":"One event type.","properties":{"description":{"description":"What it means.","type":"string"},"object":{"description":"What kind of thing it is about.","example":"campaign","type":"string"},"state":{"description":"The state it reports.","nullable":true,"type":"string"},"type":{"description":"The type, as it appears in an event.","example":"campaign.running","type":"string"}},"required":["type","object","state","description"],"type":"object"},"type":"array"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["event_types","request_id"],"type":"object"},"ExcludedBy":{"description":"Which do-not-contact list holds the domain. own_list: your own list. everyone: the shared list.","enum":["own_list","everyone"],"type":"string"},"ExclusionReason":{"description":"Why a domain is on the do-not-contact list. requested: the company asked. complaint: a complaint came in. bounce: mail to it bounced. denylist: on a shared block list. manual: added by hand. customer_list: on a list you uploaded.","enum":["requested","complaint","bounce","denylist","manual","customer_list"],"type":"string"},"ExtraSearchQueued":{"allOf":[{"$ref":"#/components/schemas/Job"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"ExtraSearchQuote":{"description":"What an extra search would search, find and cost. Nothing is searched or charged by asking.","properties":{"anchor":{"description":"The campaign's first town, the one the nearby towns are measured from.","properties":{"location_code":{"description":"The town code.","type":"integer"},"location_name":{"description":"The town name.","nullable":true,"type":"string"}},"required":["location_code","location_name"],"type":"object"},"bought":{"description":"How many companies the campaign asked for. Null when it asked for no number.","minimum":1,"nullable":true,"type":"integer"},"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"estimated_new":{"description":"An estimate of how many new companies the extra search finds, never more than missing.","minimum":0,"type":"integer"},"fee_micros_per_company":{"description":"The search fee for each new company that could be written to and is not sent to, in micro-dollars. 0 means no fee.","minimum":0,"type":"integer"},"found":{"description":"How many companies the campaign holds now.","minimum":0,"type":"integer"},"keywords":{"description":"How many keywords each town is searched for.","minimum":0,"type":"integer"},"missing":{"description":"How many companies it is short of what it asked for.","minimum":0,"type":"integer"},"price_micros":{"description":"The most the extra search can cost, in micro-dollars: estimated_new times fee_micros_per_company. Charged when the campaign's hold settles, only for companies not sent to.","minimum":0,"type":"integer"},"radius_km":{"description":"How far from the first town the nearby towns are: 25, or 50 when there are none within 25 km.","type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"searches_reused":{"description":"How many of the searches are ones we already hold, at no cost.","minimum":0,"type":"integer"},"searches_to_buy":{"description":"How many searches are new.","minimum":0,"type":"integer"},"towns":{"description":"The towns the extra search adds, biggest first.","items":{"description":"A town the extra search adds.","properties":{"distance_km":{"description":"How far it is from the first town, in km.","type":"number"},"location_code":{"description":"The town code.","type":"integer"},"location_name":{"description":"The town name.","type":"string"}},"required":["location_code","location_name","distance_km"],"type":"object"},"type":"array"}},"required":["campaign_id","found","bought","missing","anchor","radius_km","towns","keywords","searches_reused","searches_to_buy","estimated_new","fee_micros_per_company","price_micros","request_id"],"type":"object"},"FailedReason":{"description":"Why a delivery was given up. exhausted: every attempt failed. endpoint_off: the endpoint was switched off.","enum":["exhausted","endpoint_off"],"type":"string"},"FollowUp":{"description":"A task for a person: a follow-up a machine cannot do.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"campaign_name":{"description":"Its name.","type":"string"},"created_at":{"description":"When it was made.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"domain":{"description":"The company site.","example":"example.com","type":"string"},"done_at":{"description":"When it was done.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"due_at":{"description":"When it is due.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"id":{"description":"The task id.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"kind":{"$ref":"#/components/schemas/FollowUpKind"},"note":{"description":"A note left when it was done.","nullable":true,"type":"string"},"step_no":{"description":"The sequence step it belongs to.","type":"integer"},"target_id":{"description":"The company on the campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["id","campaign_id","campaign_name","target_id","domain","step_no","kind","due_at","done_at","note","created_at"],"type":"object"},"FollowUpDone":{"description":"The task that was marked done.","properties":{"already":{"description":"Whether it was done before, in which case nothing changed.","type":"boolean"},"done_at":{"description":"When it was marked done.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"todo_id":{"description":"The task.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["todo_id","done_at","already","request_id"],"type":"object"},"FollowUpKind":{"description":"What a follow-up task is. manual_linkedin: a task for a person, on LinkedIn. manual_facebook: a task for a person, on Facebook.","enum":["manual_linkedin","manual_facebook"],"type":"string"},"FollowUpPage":{"description":"A page of tasks for a person.","properties":{"limit":{"description":"How many rows were asked for at most.","type":"integer"},"offset":{"description":"How many rows were skipped.","type":"integer"},"page":{"$ref":"#/components/schemas/Page"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"todos":{"description":"The tasks on this page, soonest due first.","items":{"$ref":"#/components/schemas/FollowUp"},"type":"array"},"total":{"description":"How many rows there are in all.","minimum":0,"type":"integer"}},"required":["todos","total","limit","offset","request_id","page"],"type":"object"},"HouseStyle":{"description":"The house style the AI writer follows for your team.","properties":{"offered":{"description":"Whether the house style is offered. False while this feature is off for your account, and nothing else is answered.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"revision":{"description":"How many times it was saved; 0 when never.","minimum":0,"type":"integer"},"text":{"description":"The house style, at most 1000 characters. Null when none is set.","nullable":true,"type":"string"},"updated_at":{"description":"When it was last saved.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"updated_by":{"description":"Who last saved it.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"}},"required":["offered","request_id"],"type":"object"},"HouseStyleHistory":{"description":"Every saved house style, newest first.","properties":{"offered":{"description":"Whether the history is offered. False while this feature is off for your account.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"revisions":{"description":"The saves, newest first.","items":{"description":"One save.","properties":{"revision":{"description":"The revision number, 1 for the first.","minimum":1,"type":"integer"},"saved_at":{"description":"When it was saved.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"saved_by":{"description":"Who saved it.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"text":{"description":"The house style saved. Null when it was cleared.","nullable":true,"type":"string"}},"required":["revision","text","saved_at","saved_by"],"type":"object"},"type":"array"}},"required":["offered","request_id"],"type":"object"},"HouseStyleSaved":{"description":"The house style was saved. Saving the same text again changes nothing.","properties":{"offered":{"description":"Whether saving is offered. False while this feature is off for your account, and nothing changed.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"revision":{"description":"Its revision number now.","minimum":0,"type":"integer"},"text":{"description":"The house style now. Null when it was cleared.","nullable":true,"type":"string"},"updated_at":{"description":"When it was saved.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"updated_by":{"description":"Who saved it.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"}},"required":["offered","request_id"],"type":"object"},"HowMatched":{"description":"How an inbound mail was tied to a company. role_email: by the address the site listed. sender_domain: by the sender domain. ndr_recipient: by the address a bounce notice named. none: not tied to anything. manual: by hand, by a person.","enum":["role_email","sender_domain","ndr_recipient","none","manual"],"type":"string"},"InboundCounts":{"description":"How many inbound mails of each kind.","properties":{"auto_reply":{"description":"Automatic replies.","minimum":0,"type":"integer"},"bounced":{"description":"Bounce notices.","minimum":0,"type":"integer"},"objected":{"description":"Requests not to be contacted.","minimum":0,"type":"integer"},"replied":{"description":"Replies.","minimum":0,"type":"integer"},"unmatched":{"description":"Mails no campaign or company matched.","minimum":0,"type":"integer"}},"required":["replied","auto_reply","bounced","objected","unmatched"],"type":"object"},"InboundInterestSet":{"allOf":[{"description":"What the call changed.","properties":{"changed":{"description":"Whether the tag changed. False when the reply already had the tag sent; then no event is written.","type":"boolean"}},"required":["changed"],"type":"object"},{"$ref":"#/components/schemas/InboundMatch"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}],"description":"The reply as it is now, with its tag."},"InboundKind":{"description":"What an inbound mail was. replied: a reply. auto_reply: an automatic reply. bounced: a bounce notice. objected: a request not to be contacted. unmatched: no campaign or company matched it.","enum":["replied","auto_reply","bounced","objected","unmatched"],"type":"string"},"InboundMatch":{"description":"An inbound mail and what it was tied to.","properties":{"ambiguous":{"description":"Whether more than one company could have matched.","type":"boolean"},"campaign_id":{"description":"The campaign it was tied to.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"campaign_name":{"description":"The name of that campaign.","nullable":true,"type":"string"},"created_at":{"description":"When the match was made.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"detected_kind":{"allOf":[{"$ref":"#/components/schemas/InboundKind"}],"description":"What the mail looked like when it came, kept for mail no campaign matched, so a reply can still be tied by hand. Null for older mail and for mail a campaign matched when it came.","nullable":true},"domain":{"description":"The company site it was tied to.","example":"example.com","nullable":true,"type":"string"},"excerpt":{"description":"The first part of the text.","nullable":true,"type":"string"},"from_email":{"description":"The sender's e-mail address. Null while reply text is turned off, for an objection, and for mail kept before it was turned on.","nullable":true,"type":"string"},"from_name":{"description":"The name the sender's mail shows, up to 200 characters. Null while reply text is turned off, for an objection, when the mail showed none, and for mail kept before it was turned on.","nullable":true,"type":"string"},"handled_at":{"description":"When it was marked done. Null while it is open.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"handled_by":{"description":"Who marked it done.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"how_matched":{"$ref":"#/components/schemas/HowMatched"},"id":{"description":"The match id.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"interest":{"description":"How a person tagged the reply. Null when nobody has, and always for an automatic reply, a bounce or an objection. interested: interested. not_interested: not interested.","enum":["interested","not_interested"],"nullable":true,"type":"string"},"interest_set_at":{"description":"When the tag was set. Null with no tag.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"interest_set_by":{"description":"Who set the tag: a user_id without an X-Customer-Ref, the customer's person with one. Null with no tag, and for a customer's key used with no person.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"kind":{"$ref":"#/components/schemas/InboundKind"},"matched_at":{"description":"When it was tied to a company by hand. Null unless how_matched is manual.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"matched_by":{"description":"Who tied it by hand.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"owner_source":{"allOf":[{"$ref":"#/components/schemas/InboundOwnerSource"}],"description":"Why it is that person's. Null when nobody has it.","nullable":true},"owner_user_id":{"description":"Who has it: the person it was given to, else the person who looks after its company.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"paused_until":{"description":"Until when the sequence for that company is paused.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"received_at":{"description":"When the mail arrived.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"response_id":{"description":"The answer recorded from it.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"sender_domain":{"description":"The domain the mail came from.","nullable":true,"type":"string"},"source":{"$ref":"#/components/schemas/InboundSource"},"status":{"$ref":"#/components/schemas/InboundStatus"},"subject":{"description":"The first part of the subject.","nullable":true,"type":"string"},"target_id":{"description":"The company on the campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"}},"required":["id","kind","how_matched","ambiguous","source","domain","sender_domain","subject","excerpt","received_at","campaign_id","campaign_name","target_id","response_id","paused_until","created_at","detected_kind","status","handled_at","handled_by","owner_user_id","owner_source","matched_at","matched_by","from_email","from_name","interest","interest_set_at","interest_set_by"],"type":"object"},"InboundMatchChanged":{"allOf":[{"description":"What the call changed.","properties":{"changes":{"description":"What changed, in the order it was done: matched, owner, status. Empty when the mail already was as asked.","items":{"description":"A change.","enum":["matched","owner","status"],"type":"string"},"type":"array"},"withdrawn_response_id":{"description":"The answer recorded from the mail before it was tied by hand, now withdrawn. Null when there was none.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"}},"required":["changes","withdrawn_response_id"],"type":"object"},{"$ref":"#/components/schemas/InboundMatch"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}],"description":"The mail as it is now."},"InboundMatchDetail":{"allOf":[{"$ref":"#/components/schemas/InboundMatch"},{"description":"The reply's own text.","properties":{"body_text":{"description":"The reply's own text, cleaned, line breaks kept, up to 20,000 characters. Null while reply text is turned off, for a bounce or an objection, and when none was kept.","nullable":true,"type":"string"},"body_truncated":{"description":"Whether the text was cut, by the sender's reader or at 20,000 characters. Null while reply text is turned off.","nullable":true,"type":"boolean"}},"required":["body_text","body_truncated"],"type":"object"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}],"description":"One mail, with the reply's own text while reply text is turned on."},"InboundMatchPage":{"description":"A page of inbound mails.","properties":{"limit":{"description":"How many rows were asked for at most.","type":"integer"},"matches":{"description":"The mails on this page, newest first.","items":{"$ref":"#/components/schemas/InboundMatch"},"type":"array"},"offset":{"description":"How many rows were skipped.","type":"integer"},"page":{"$ref":"#/components/schemas/Page"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"total":{"description":"How many rows there are in all.","minimum":0,"type":"integer"}},"required":["matches","total","limit","offset","request_id","page"],"type":"object"},"InboundOwnerSource":{"description":"Why the mail is that person's. assigned: it was given to them. company: they look after its company.","enum":["assigned","company"],"type":"string"},"InboundReported":{"description":"What reporting inbound mail did, as counts.","properties":{"already":{"description":"How many were reported before.","minimum":0,"type":"integer"},"by_kind":{"additionalProperties":{"minimum":0,"type":"integer"},"description":"How many of each kind were tied.","type":"object"},"ignored":{"description":"How many were left aside.","minimum":0,"type":"integer"},"matched":{"description":"How many were tied to a company.","minimum":0,"type":"integer"},"paused":{"description":"How many sequences were paused by them.","minimum":0,"type":"integer"},"refused":{"description":"How many were refused.","minimum":0,"type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"seen":{"description":"How many mails were offered.","minimum":0,"type":"integer"},"unmatched":{"description":"How many matched nothing.","minimum":0,"type":"integer"},"window_days":{"description":"How many days back a mail may date from.","type":"integer"}},"required":["seen","matched","by_kind","unmatched","ignored","already","paused","refused","window_days","request_id"],"type":"object"},"InboundSource":{"description":"Which mailbox the mail came through. ms_mailbox: the connected Microsoft mailbox. alias: the reply alias. imap: the mailbox connected with an app password.","enum":["ms_mailbox","alias","imap"],"type":"string"},"InboundStatus":{"description":"Whether somebody has dealt with an inbound mail. open: nobody has marked it done yet. done: somebody marked it done.","enum":["open","done"],"type":"string"},"InboundSummary":{"description":"How replies are captured, and how many came.","properties":{"alias_on":{"description":"Whether replies are captured through the reply alias.","type":"boolean"},"capture_on":{"description":"Whether replies are captured from the connected mailbox.","type":"boolean"},"connection":{"description":"The connected mailbox.","nullable":true,"properties":{"last_read_at":{"description":"When mail was last read.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"mail_read":{"description":"Whether the connection may read mail.","type":"boolean"},"ms_email":{"description":"The connected mailbox address.","type":"string"},"status":{"description":"Whether the connection works.","type":"string"}},"required":["status","ms_email","last_read_at","mail_read"],"type":"object"},"handling_on":{"description":"Whether a mail can be marked done, given to a person or tied by hand (PATCH /v1/inbound-matches/{id}).","type":"boolean"},"interest":{"description":"Replies tagged interested or not interested, by when the reply came.","properties":{"last_30_days":{"$ref":"#/components/schemas/InterestCounts"},"last_7_days":{"$ref":"#/components/schemas/InterestCounts"},"on":{"description":"Whether tagging replies is available for your account (PUT /v1/inbound-matches/{id}/interest).","type":"boolean"},"untagged_replies":{"description":"Replies of the last 30 days nobody has tagged yet.","minimum":0,"type":"integer"}},"required":["on","last_7_days","last_30_days","untagged_replies"],"type":"object"},"last_30_days":{"$ref":"#/components/schemas/InboundCounts"},"last_7_days":{"$ref":"#/components/schemas/InboundCounts"},"last_match_at":{"description":"When a mail was last tied to a company.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"open":{"allOf":[{"$ref":"#/components/schemas/InboundCounts"}],"description":"Every mail still open, of each kind, whenever it came."},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["capture_on","alias_on","handling_on","connection","last_match_at","last_7_days","last_30_days","open","interest","request_id"],"type":"object"},"InterestCounts":{"description":"How many replies were tagged each way.","properties":{"interested":{"description":"Replies tagged interested.","minimum":0,"type":"integer"},"not_interested":{"description":"Replies tagged not interested.","minimum":0,"type":"integer"}},"required":["interested","not_interested"],"type":"object"},"Invoice":{"description":"One invoice.","properties":{"customer_ref":{"description":"The customer the invoice belongs to. Null for the account itself.","nullable":true,"type":"string"},"invoice":{"$ref":"#/components/schemas/InvoiceDetail"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["customer_ref","invoice","request_id"],"type":"object"},"InvoiceDetail":{"description":"One invoice for a paid top-up, or a correcting invoice for a refund of one. Amounts are in cents of currency; on a correction they are below zero.","properties":{"buyer":{"description":"The buyer as the billing details read at the moment of payment.","properties":{"address_line1":{"description":"Street and number.","type":"string"},"address_line2":{"description":"A second address line.","nullable":true,"type":"string"},"city":{"description":"The town.","type":"string"},"country_code":{"description":"The country.","example":"DE","pattern":"^[A-Z]{2}$","type":"string"},"name":{"description":"The company name, or the person's name.","type":"string"},"postal_code":{"description":"The postal code.","nullable":true,"type":"string"},"tax_id":{"description":"The company's tax ID, such as PL5260001246. Null for a private person.","nullable":true,"type":"string"},"type":{"description":"Who bought. company: a company, invoiced with its NIP. individual: a private person, invoiced without a tax ID.","enum":["company","individual"],"type":"string"}},"required":["type","name","address_line1","address_line2","postal_code","city","country_code","tax_id"],"type":"object"},"corrects":{"description":"The invoice this one corrects. Null on an invoice.","nullable":true,"properties":{"id":{"description":"The corrected invoice.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"ksef_number":{"description":"Its KSeF number. Null until KSeF took it.","nullable":true,"type":"string"},"number":{"description":"Its number. Null while it waits for one.","nullable":true,"type":"string"}},"required":["id","number","ksef_number"],"type":"object"},"created_at":{"description":"When the payment made the invoice.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"credit_entry_id":{"description":"The top-up in the credit ledger (GET /credit/transactions) the invoice is for. Null on a correction.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"currency":{"description":"The currency paid, such as USD.","type":"string"},"gross_cents":{"description":"The amount with VAT, in cents: net_cents + vat_cents. Below zero on a correction. Null while waiting.","nullable":true,"type":"integer"},"id":{"description":"The invoice.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"issue_date":{"description":"The day it was numbered. Null while waiting.","example":"2026-09-17","format":"date","nullable":true,"type":"string"},"issued_at":{"description":"When it was numbered. Null while waiting.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"kind":{"description":"What the invoice is. invoice: the invoice for a paid top-up. correction: a correcting invoice for a refund: it names the invoice it corrects in corrects, and its amounts are below zero.","enum":["invoice","correction"],"type":"string"},"ksef_number":{"description":"The number KSeF gave the invoice. Null until state is accepted.","nullable":true,"type":"string"},"net_cents":{"description":"The amount without VAT, in cents. Below zero on a correction. Null while waiting.","nullable":true,"type":"integer"},"number":{"description":"The invoice number, such as CFO/2026/000001: one series a year without gaps. Null while state is waiting.","nullable":true,"type":"string"},"paid_cents":{"description":"What was paid, in cents of currency. Below zero on a correction: what was refunded.","type":"integer"},"pdf_url":{"description":"A link to download the invoice as a PDF, as the invoicing service made it. It works for five minutes: read the invoice again for a new one. Null until the PDF is kept here, usually a few minutes after KSeF took the invoice.","nullable":true,"type":"string"},"pdf_url_expires_at":{"description":"When pdf_url stops working. Null when pdf_url is null.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"pln":{"description":"The VAT in PLN, as Polish law asks of an invoice in another currency. Null while waiting.","nullable":true,"properties":{"rate":{"description":"The National Bank of Poland's table A mid rate: PLN for one unit of currency.","type":"number"},"rate_date":{"description":"The day of that table: the last business day before sale_date.","example":"2026-09-17","format":"date","type":"string"},"table_no":{"description":"The table the rate comes from, such as 223/A/NBP/2026.","type":"string"},"vat_grosze":{"description":"The VAT in grosze (1 PLN = 100 grosze). Below zero on a correction.","type":"integer"}},"required":["rate","table_no","rate_date","vat_grosze"],"type":"object"},"price_basis":{"description":"How the amount paid is read. Null while waiting. gross: the amount paid holds the VAT. net: VAT was added on top of the price.","enum":["gross","net"],"nullable":true,"type":"string"},"reason":{"description":"Why the invoice was corrected, such as Refund of a prepaid credit top-up. Null on an invoice.","nullable":true,"type":"string"},"sale_date":{"description":"The day of the payment, in Poland's time.","example":"2026-09-17","format":"date","type":"string"},"seller":{"description":"The seller as it stood when the invoice was numbered. Null while waiting.","nullable":true,"properties":{"address_line1":{"description":"Street and number.","type":"string"},"city":{"description":"The town.","type":"string"},"country_code":{"description":"Always PL.","example":"DE","pattern":"^[A-Z]{2}$","type":"string"},"name":{"description":"The seller's name.","type":"string"},"nip":{"description":"The seller's Polish tax ID, 10 digits.","type":"string"},"postal_code":{"description":"The postal code.","type":"string"}},"required":["name","nip","address_line1","postal_code","city","country_code"],"type":"object"},"state":{"description":"Where the invoice stands. waiting: made, not numbered yet: it is numbered once the exchange rate of the day before the sale is published, usually the next business day. sending: numbered and on its way to KSeF, the Polish national e-invoice system. accepted: KSeF took it; ksef_number is its KSeF number.","enum":["waiting","sending","accepted"],"type":"string"},"vat_cents":{"description":"The VAT, in cents. Below zero on a correction. Null while waiting.","nullable":true,"type":"integer"},"vat_rate":{"description":"The VAT rate in percent, such as 23. Null while waiting.","nullable":true,"type":"number"}},"required":["id","kind","corrects","reason","number","state","sale_date","issue_date","currency","paid_cents","price_basis","vat_rate","net_cents","vat_cents","gross_cents","pln","buyer","seller","ksef_number","credit_entry_id","created_at","issued_at","pdf_url","pdf_url_expires_at"],"type":"object"},"InvoicePage":{"description":"A page of the invoices, for your account or for the customer named by X-Customer-Ref.","properties":{"customer_ref":{"description":"The customer these invoices belong to. Null for the account itself.","nullable":true,"type":"string"},"invoices":{"description":"The invoices on this page, newest first.","items":{"$ref":"#/components/schemas/InvoiceDetail"},"type":"array"},"limit":{"description":"How many rows were asked for at most.","type":"integer"},"offset":{"description":"How many rows were skipped.","type":"integer"},"page":{"$ref":"#/components/schemas/Page"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"state":{"description":"The state that was asked for. Null when none was.","nullable":true,"type":"string"},"switch_on":{"description":"Whether invoices are being made now for new payments. Invoices already made are listed either way.","type":"boolean"},"total":{"description":"How many rows there are in all.","minimum":0,"type":"integer"}},"required":["customer_ref","switch_on","state","invoices","total","limit","offset","request_id","page"],"type":"object"},"Job":{"description":"A job: a piece of work on a campaign.","properties":{"attempts":{"description":"How many times it was started.","minimum":0,"type":"integer"},"campaign_id":{"description":"The campaign it works for.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"created_at":{"description":"When it was queued.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"finished_at":{"description":"When it finished.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"id":{"description":"The job id.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"kind":{"$ref":"#/components/schemas/JobKind"},"not_before":{"description":"It does not start before this moment.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"problem":{"allOf":[{"$ref":"#/components/schemas/Problem"}],"nullable":true},"state":{"$ref":"#/components/schemas/JobState"}},"required":["id","campaign_id","kind","state","attempts","created_at","not_before","finished_at","problem"],"type":"object"},"JobDetail":{"allOf":[{"$ref":"#/components/schemas/Job"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"JobKind":{"description":"What a job does. discover: finds companies from the keywords and towns. profile: reads each company site for its contact form. submit: sends the enquiries. ai_preview: has the AI writer write its version of the message for up to three companies, before sending. harvest: reads the contact pages of companies already read, after contact details were asked for on an existing campaign.","enum":["discover","profile","submit","ai_preview","harvest"],"type":"string"},"JobPage":{"description":"A page of the jobs on a campaign.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"jobs":{"description":"The jobs on this page, newest first.","items":{"$ref":"#/components/schemas/Job"},"type":"array"},"limit":{"description":"How many rows were asked for at most.","type":"integer"},"offset":{"description":"How many rows were skipped.","type":"integer"},"page":{"$ref":"#/components/schemas/Page"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"total":{"description":"How many rows there are in all.","minimum":0,"type":"integer"}},"required":["campaign_id","jobs","total","limit","offset","request_id","page"],"type":"object"},"JobQueued":{"allOf":[{"$ref":"#/components/schemas/Job"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"JobState":{"description":"Where a job is. queued: waiting for a worker. running: in progress. done: finished. failed: gave up. cancelled: stopped.","enum":["queued","running","done","failed","cancelled"],"type":"string"},"KeywordVariants":{"description":"The local-language ways of saying a trade keyword.","properties":{"country_code":{"description":"The country whose language the variants are in.","example":"DE","pattern":"^[A-Z]{2}$","type":"string"},"keyword":{"description":"The keyword as it was asked.","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"variants":{"description":"The exact matches first, then the ones matched inside a longer keyword. Empty while this feature is off for your account.","items":{"description":"A variant: a keyword chip.","properties":{"keyword":{"description":"The variant, a keyword the search can also be asked for.","type":"string"},"why":{"description":"The one line the chip shows: why this way of saying it matters.","type":"string"}},"required":["keyword","why"],"type":"object"},"type":"array"}},"required":["keyword","country_code","variants","request_id"],"type":"object"},"ListImported":{"description":"What the import did.","properties":{"added":{"description":"How many were added.","minimum":0,"type":"integer"},"already_contacted":{"description":"How many were left out as written to before.","minimum":0,"type":"integer"},"already_known":{"description":"How many of them are already on another of your lists or campaigns; a list is imported whole, so they are counted, not left out.","minimum":0,"type":"integer"},"already_on_the_campaign":{"description":"How many were on it already.","minimum":0,"type":"integer"},"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"left_behind_for_room":{"description":"How many did not fit within the delivery target.","minimum":0,"type":"integer"},"left_out_by_country":{"description":"How many companies on the list were left out because they are not in the campaign's only_country. 0 when the campaign takes every company.","minimum":0,"type":"integer"},"list_id":{"description":"The list.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"on_the_list":{"description":"How many domains the list holds.","minimum":0,"type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"skip_contacted":{"description":"Whether companies written to before are left out.","type":"boolean"},"skipped_known":{"description":"How many companies the register put on the list were left out because the campaign asks for new companies only and you already have them, by website or by register number. Zero unless the campaign asks and the feature is on for your account.","minimum":0,"type":"integer"},"total":{"description":"How many companies the campaign has now.","minimum":0,"type":"integer"}},"required":["campaign_id","list_id","on_the_list","added","already_on_the_campaign","already_contacted","already_known","skipped_known","left_out_by_country","skip_contacted","left_behind_for_room","total","request_id"],"type":"object"},"ListRowsSaved":{"description":"What saving the rows did, as counts, with each refused row named.","properties":{"added":{"description":"How many companies were added to the list.","minimum":0,"type":"integer"},"dry_run":{"description":"True when nothing was saved and the counts say what would have happened.","type":"boolean"},"field_keys":{"description":"The keys of fields the list holds after the call, sorted.","items":{"type":"string"},"type":"array"},"list_id":{"description":"The list.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"refusals":{"description":"The first 100 refused rows, in the order sent.","items":{"description":"One refused row.","properties":{"domain":{"description":"The website as it was read, cleaned. Null when the row had none.","example":"example.com","nullable":true,"type":"string"},"field":{"description":"The detail that was refused: company_name, city, fields, or fields. followed by the key. Null for not_a_domain and repeated.","example":"company_name","nullable":true,"type":"string"},"row":{"description":"Its position in rows, from 0.","minimum":0,"type":"integer"},"why":{"description":"Why it was refused. not_a_domain: the row has no website, or what it has is not one. repeated: the same website is on an earlier row of this call; the earlier row counts. value_too_long: a detail is longer than it may be (company_name 200, city 120, a field 500 characters). value_not_allowed: a detail holds something a message may not carry: a control character, {{ or }}, an at sign, or spaces at its ends.","enum":["not_a_domain","repeated","value_too_long","value_not_allowed"],"type":"string"}},"required":["row","domain","why","field"],"type":"object"},"type":"array"},"refused":{"description":"How many rows were refused; nothing of them was saved.","minimum":0,"type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"rows_read":{"description":"How many rows were sent.","minimum":0,"type":"integer"},"total":{"description":"How many companies the list has after the call.","minimum":0,"type":"integer"},"unchanged":{"description":"How many companies already on the list were sent with the same details.","minimum":0,"type":"integer"},"updated":{"description":"How many companies already on the list had a detail changed.","minimum":0,"type":"integer"}},"required":["list_id","dry_run","rows_read","added","updated","unchanged","refused","refusals","field_keys","total","request_id"],"type":"object"},"Mailbox":{"description":"Your connected mailbox, read for replies. The password is never answered.","properties":{"address":{"description":"The mailbox's email address.","format":"email","type":"string"},"connected_at":{"description":"When it was connected.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"created_at":{"description":"When this connection was made.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"fail_code":{"description":"Why the last try did not work, or null. auth_failed: the server refused the login name or the app password. tls_failed: the server's certificate is not valid for its name. host_not_found: the server name does not exist or does not lead to a public address. host_refused: the server name may not be used. microsoft: a Microsoft mailbox, which takes no app password. timeout: the server did not answer in time. server_busy: the server asked to come back later. protocol: the server answered in a way that could not be read. connect_failed: the connection could not be made. key_unreadable: the saved app password can no longer be read on our side; connect the mailbox again with its app password.","enum":["auth_failed","tls_failed","host_not_found","host_refused","microsoft","timeout","server_busy","protocol","connect_failed","key_unreadable"],"nullable":true,"type":"string"},"host":{"description":"The IMAP server it is read from.","type":"string"},"last_checked_at":{"description":"When it was last read without a problem.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"last_try_at":{"description":"When it was last tried.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"locked_until":{"description":"Until when this mailbox may not be connected again, after it refused the password 5 times in 24 hours.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"login":{"description":"The login name.","type":"string"},"mailbox_id":{"description":"The connection.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"next_check_at":{"description":"When it is read next.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"port":{"description":"The server's port: always 993, encrypted.","maximum":65535,"minimum":1,"type":"integer"},"replies_found":{"description":"How many mails from companies your campaigns contacted were found in it.","minimum":0,"type":"integer"},"status":{"description":"Where the connection stands. checking: connected, waiting for its first sign-in, within a minute. connected: signed in and read every five minutes. failed: not read until it is connected again or checked again; fail_code says why.","enum":["checking","connected","failed"],"type":"string"}},"required":["mailbox_id","address","host","port","login","status","fail_code","connected_at","last_checked_at","last_try_at","next_check_at","locked_until","replies_found","created_at"],"type":"object"},"MailboxCheck":{"description":"A check of your mailbox was asked for.","properties":{"mailbox":{"$ref":"#/components/schemas/Mailbox"},"offered":{"description":"Whether connecting a mailbox is offered. False while this feature is off for your account, and nothing changed.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["offered","request_id"],"type":"object"},"MailboxConnected":{"description":"The mailbox now connected for replies.","properties":{"mailbox":{"$ref":"#/components/schemas/Mailbox"},"offered":{"description":"Whether connecting a mailbox is offered. False while this feature is off for your account, and nothing changed.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["offered","request_id"],"type":"object"},"MailboxDisconnected":{"description":"The mailbox was disconnected.","properties":{"offered":{"description":"Whether connecting a mailbox is offered now. Disconnecting works either way.","type":"boolean"},"removed":{"description":"Whether a mailbox was connected and is now removed, with its password.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["offered","removed","request_id"],"type":"object"},"MailboxRead":{"description":"Your connected mailbox for replies.","properties":{"mailbox":{"allOf":[{"$ref":"#/components/schemas/Mailbox"}],"description":"The connected mailbox, or null when none is.","nullable":true},"offered":{"description":"Whether connecting a mailbox is offered. False while this feature is off for your account, and nothing else is answered.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["offered","request_id"],"type":"object"},"Mentions":{"description":"What a message may mention, with this sender's values.","properties":{"mentions":{"description":"The mentions, those about the sender first.","items":{"description":"One thing a message may mention.","properties":{"about":{"description":"you: a fact about the sender, with its value here. them: a fact about the company written to, filled for each company at sending.","enum":["you","them"],"type":"string"},"filled":{"description":"Whether the mention has something to put in it. False for a sender fact with no value: a message using it is not sent until the sender has one.","type":"boolean"},"key":{"description":"The fill-in's name, written {{key}} in a message.","example":"sender_company","type":"string"},"value":{"description":"The sender's value, for a mention about the sender. Null when there is none, and for a mention about the company.","nullable":true,"type":"string"}},"required":["key","about","value","filled"],"type":"object"},"type":"array"},"offered":{"description":"Whether mentions are offered. False while this feature is off for your account, with an empty list.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"sender_id":{"description":"The sender.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["offered","sender_id","mentions","request_id"],"type":"object"},"MentionsWithoutSender":{"description":"What a message may mention before a sender is saved.","properties":{"mentions":{"description":"The mentions, those about the sender first.","items":{"description":"One thing a message may mention.","properties":{"about":{"description":"you: a fact about the sender, with no value here. them: a fact about the company written to, filled for each company at sending.","enum":["you","them"],"type":"string"},"filled":{"description":"True for a fact about the company written to; false for a sender fact, which has no value until a sender is saved.","type":"boolean"},"key":{"description":"The fill-in's name, written {{key}} in a message.","example":"sender_company","type":"string"},"value":{"description":"Always null here: a sender fact has its value once a sender is saved, a company fact at sending.","nullable":true,"type":"string"}},"required":["key","about","value","filled"],"type":"object"},"type":"array"},"offered":{"description":"Whether the read is offered. False while either feature is off for your account, with an empty list.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"sender_id":{"description":"Always null: no sender was named.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"}},"required":["offered","sender_id","mentions","request_id"],"type":"object"},"Message":{"description":"A message: the enquiry text and the sender it is sent as.","properties":{"body":{"description":"The enquiry text.","type":"string"},"can_delete":{"description":"Whether it can be deleted now.","type":"boolean"},"created_at":{"description":"When it was made.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"fill_unimportant":{"description":"Whether details you have not filled in are given plausible values. Send it back when you save the message, or it is saved as false.","type":"boolean"},"group":{"description":"The group the message was saved under with POST /templates/batch. Null when it has none.","nullable":true,"type":"string"},"id":{"description":"The message id.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"in_use":{"description":"How many of those are still active.","minimum":0,"type":"integer"},"language_code":{"description":"The language the message is written in, two letters. Null when not given.","nullable":true,"type":"string"},"name":{"description":"Its name.","type":"string"},"sender_budget_range":{"description":"The budget range named when a form asks.","nullable":true,"type":"string"},"sender_city":{"description":"The sender's city.","nullable":true,"type":"string"},"sender_company":{"description":"The company the enquiry is sent as.","type":"string"},"sender_company_id":{"description":"The sender's company number.","nullable":true,"type":"string"},"sender_company_id_kind":{"description":"What kind of company number it is.","nullable":true,"type":"string"},"sender_company_size":{"description":"How big the sender's company is, in words.","nullable":true,"type":"string"},"sender_email":{"description":"The address replies go to.","type":"string"},"sender_first_name":{"description":"The sender's first name.","nullable":true,"type":"string"},"sender_how_found":{"description":"How the sender found the company, when a form asks.","nullable":true,"type":"string"},"sender_id":{"description":"The saved sender this message is linked to. Null when it keeps its own details.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"sender_job_title":{"description":"The sender's job title.","nullable":true,"type":"string"},"sender_last_name":{"description":"The sender's last name.","nullable":true,"type":"string"},"sender_phone":{"description":"The sender's phone number.","nullable":true,"type":"string"},"sender_postcode":{"description":"The sender's postcode.","nullable":true,"type":"string"},"sender_product_interest":{"description":"The product or service the enquiry is about.","nullable":true,"type":"string"},"sender_region":{"description":"The sender's state, province or region.","nullable":true,"type":"string"},"sender_street":{"description":"The sender's street address.","nullable":true,"type":"string"},"sender_vat_id":{"description":"The sender's VAT number.","nullable":true,"type":"string"},"sender_website":{"description":"The sender's website.","nullable":true,"type":"string"},"short_body":{"description":"The short version, for a form whose message box is too small for the body. Null when the message has none. Send it back when you save the message, or it is cleared.","nullable":true,"type":"string"},"subject":{"description":"The subject line.","type":"string"},"updated_at":{"description":"When it last changed.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"used_by_campaigns":{"description":"How many campaigns use it, as their message or as a version: the total of GET /campaigns with template_id.","minimum":0,"type":"integer"}},"required":["id","name","subject","body","sender_company","sender_email","sender_phone","sender_website","sender_first_name","sender_last_name","sender_city","sender_postcode","sender_job_title","sender_company_id","sender_company_id_kind","sender_vat_id","sender_company_size","sender_budget_range","sender_product_interest","sender_how_found","sender_street","sender_region","short_body","fill_unimportant","created_at","updated_at","used_by_campaigns","in_use","can_delete","sender_id","language_code","group"],"type":"object"},"MessageBy":{"description":"Who wrote the message a company was sent. you: you: the message as written, its variables filled in. ai_writer: the AI writer: its version of the message for that company.","enum":["you","ai_writer"],"type":"string"},"MessageDeleted":{"description":"The message that was deleted.","properties":{"name":{"description":"Its name.","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"template_id":{"description":"The message.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["template_id","name","request_id"],"type":"object"},"MessageDetail":{"allOf":[{"$ref":"#/components/schemas/Message"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"MessageHistory":{"description":"Every saved version of one message, newest first.","properties":{"offered":{"description":"Whether new versions are kept. False while this feature is off for your account; versions kept before stay readable.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"revisions":{"description":"The versions, newest first.","items":{"description":"One saved version.","properties":{"body":{"description":"The message in this version.","nullable":true,"type":"string"},"name":{"description":"The message's name in this version.","nullable":true,"type":"string"},"restored_from":{"description":"The earlier version this one brought back, when it was a restore.","minimum":1,"nullable":true,"type":"integer"},"revision":{"description":"The version number, 1 for the first.","minimum":1,"type":"integer"},"saved_at":{"description":"When this version was saved.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"short_body":{"description":"The short version in this version.","nullable":true,"type":"string"},"subject":{"description":"The subject in this version.","nullable":true,"type":"string"}},"required":["revision","name","subject","body","short_body","saved_at","restored_from"],"type":"object"},"type":"array"},"template_id":{"description":"The message.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["offered","template_id","revisions","request_id"],"type":"object"},"MessagePreview":{"description":"A message as a company would receive it, from unsaved texts. Nothing is saved or sent.","properties":{"blanks":{"description":"The mentions used that the sender has no value for. The send refuses a message with one; the preview shows the hole.","items":{"type":"string"},"type":"array"},"body":{"description":"The message with the values filled in and the closing line appended once.","type":"string"},"body_without_closing":{"description":"body without the closing line, for a screen that shows closing_line on its own.","type":"string"},"closing_line":{"description":"The closing line appended, the way to stop being contacted, in the campaign's language.","type":"string"},"company":{"additionalProperties":true,"description":"The list company used, when list_id and company_domain were given: name, domain, country (null when not found in the register) and name_from (register or domain).","nullable":true,"type":"object"},"example_company":{"additionalProperties":true,"description":"The values that stood in for the company's own facts (company_name, company_domain, keyword, country).","type":"object"},"fallbacks_used":{"description":"The fill-ins written as their fallback, {{name|fallback text}}, because the shown company has no value for them. Never in blanks. Absent while the fill-in fallback is off for your account.","items":{"type":"string"},"type":"array"},"language":{"description":"The language the closing line was written in.","example":"de","type":"string"},"mentions_used":{"description":"The mentions the texts use.","items":{"type":"string"},"type":"array"},"offered":{"description":"Whether the preview is offered. False while this feature is off for your account, and nothing else is answered.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"sendable":{"description":"True when blanks and unknown are both empty.","type":"boolean"},"sender_id":{"description":"The sender whose values were filled in. Null when the preview was asked without one: the four sender facts are then blanks.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"short_body":{"description":"The short version the same way, or null when none was given.","nullable":true,"type":"string"},"short_body_without_closing":{"description":"short_body the same way, or null when none was given.","nullable":true,"type":"string"},"spans":{"description":"Where each fill-in sits in the texts as given, so a screen can mark them. Offsets count characters, start inclusive, end exclusive.","items":{"description":"One fill-in in one text.","properties":{"end":{"description":"Where it ends, exclusive.","minimum":0,"type":"integer"},"field":{"description":"Which text: subject, body or short_body.","enum":["subject","body","short_body"],"type":"string"},"key":{"description":"The fill-in's name.","example":"company_name","type":"string"},"start":{"description":"Where it starts in that text, counted in characters.","minimum":0,"type":"integer"}},"required":["field","key","start","end"],"type":"object"},"type":"array"},"subject":{"description":"The subject with the values filled in. Empty when none was given.","type":"string"},"tips":{"description":"Plain advice on the message, each with a code a screen can key on. Empty when there is nothing to say.","items":{"description":"One tip.","properties":{"code":{"description":"TOO_LONG, NO_SHORT_VERSION, TOO_SHORT, MANY_LINKS or CAPITALS.","enum":["TOO_LONG","NO_SHORT_VERSION","TOO_SHORT","MANY_LINKS","CAPITALS"],"type":"string"},"text":{"description":"The tip, in plain words.","type":"string"}},"required":["code","text"],"type":"object"},"type":"array"},"unknown":{"description":"Any {{...}} the service does not fill, as written. Saving refuses a message with one.","items":{"type":"string"},"type":"array"},"would_skip":{"description":"How many companies of campaign_id or list_id have no value for a fill-in the texts use without a fallback (keyword, city or fields.key), and so would be left out at sending. For a campaign, only its companies still to be sent count; a company from a list never has a keyword. Null when neither was given. Absent while the skip count is off for your account.","nullable":true,"properties":{"by_fill_in":{"additionalProperties":{"minimum":0,"type":"integer"},"description":"Each fill-in used without a fallback, and how many companies lack it, 0 included.","type":"object"},"count":{"description":"How many companies would be left out. A company missing two fill-ins counts once.","minimum":0,"type":"integer"}},"required":["count","by_fill_in"],"type":"object"}},"required":["offered","request_id"],"type":"object"},"MessageRestored":{"description":"An earlier version of a message was brought back.","properties":{"offered":{"description":"Whether restoring is offered. False while this feature is off for your account, and nothing changed.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"restored_from":{"description":"The version brought back.","minimum":1,"type":"integer"},"revision":{"description":"The new version number the restore was saved as.","minimum":1,"type":"integer"},"template_id":{"description":"The message.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["offered","request_id"],"type":"object"},"MessageSaved":{"description":"The message that was saved.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"template_id":{"description":"The message.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["template_id","request_id"],"type":"object"},"Messages":{"description":"Your messages.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"templates":{"description":"The messages, most recently changed first.","items":{"$ref":"#/components/schemas/Message"},"type":"array"}},"required":["templates","request_id"],"type":"object"},"MessagesSaved":{"description":"The messages that were saved, all of the list.","properties":{"count":{"description":"How many were saved.","minimum":0,"type":"integer"},"group":{"description":"The group they were saved under. Null when none was sent.","nullable":true,"type":"string"},"offered":{"description":"Whether saving a list is offered. False while this feature is off for your account, and nothing was saved.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"template_ids":{"description":"The saved messages, in the order you sent them.","items":{"description":"A message.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"type":"array"}},"required":["offered","template_ids","count","group","request_id"],"type":"object"},"NamesAdded":{"description":"What adding names did, as counts; the websites are found afterwards.","properties":{"already_on_the_list":{"description":"How many were on it already, or repeated in the request.","minimum":0,"type":"integer"},"list_id":{"description":"The list.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"offered":{"description":"How many names were offered.","minimum":0,"type":"integer"},"queued":{"description":"How many will be looked for.","minimum":0,"type":"integer"},"refusals":{"description":"The first fifty refusals.","items":{"description":"One refused name.","properties":{"line":{"description":"Its position in the request, from 1.","minimum":1,"type":"integer"},"reason":{"description":"Why it was refused.","type":"string"}},"required":["line","reason"],"type":"object"},"type":"array"},"refused":{"description":"How many were refused.","minimum":0,"type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["list_id","offered","queued","already_on_the_list","refused","refusals","request_id"],"type":"object"},"Note":{"description":"A note a member of your staff wrote about a company on a campaign.","properties":{"body":{"description":"The note itself.","type":"string"},"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"domain":{"description":"The company site.","example":"example.com","type":"string"},"id":{"description":"The note.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"target_id":{"description":"The company on the campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"withdrawn_at":{"description":"When it was withdrawn, if it was.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"withdrawn_by":{"description":"Who withdrew it.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"withdrawn_reason":{"description":"Why it was withdrawn.","nullable":true,"type":"string"},"written_at":{"description":"When it was written.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"written_by":{"description":"Who wrote it.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"written_by_name":{"description":"Their name.","nullable":true,"type":"string"}},"required":["id","campaign_id","target_id","domain","body","written_by","written_by_name","written_at","withdrawn_at","withdrawn_by","withdrawn_reason"],"type":"object"},"NoteAdded":{"description":"The note that was added.","properties":{"note":{"description":"The note.","properties":{"body":{"description":"The note itself.","type":"string"},"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"domain":{"description":"The company site.","example":"example.com","type":"string"},"id":{"description":"The note.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"target_id":{"description":"The company on the campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"withdrawn_at":{"description":"Always null on a note just added.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"written_at":{"description":"When it was written.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"written_by":{"description":"Who wrote it: the person this key acts as.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["id","campaign_id","target_id","domain","body","written_by","written_at","withdrawn_at"],"type":"object"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["note","request_id"],"type":"object"},"NotePage":{"description":"A page of the notes on one company of one campaign, newest first.","properties":{"domain":{"description":"The company site.","example":"example.com","type":"string"},"notes":{"description":"The notes on this page.","items":{"$ref":"#/components/schemas/Note"},"type":"array"},"owner_user_id":{"description":"Who looks after the company.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"page":{"$ref":"#/components/schemas/Page"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"total":{"description":"How many notes there are in all, withdrawn ones included.","minimum":0,"type":"integer"}},"required":["notes","total","domain","owner_user_id","request_id","page"],"type":"object"},"NoteWithdrawn":{"description":"The note that was withdrawn.","properties":{"note_id":{"description":"The note.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"withdrawn_at":{"description":"When it was withdrawn.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"}},"required":["note_id","withdrawn_at","request_id"],"type":"object"},"Offered":{"description":"Which message helpers are offered. Each can be on or off for your account.","properties":{"closing_lines":{"description":"PUT /closing-lines/{language} saves your own wording of the closing line.","type":"boolean"},"drafts":{"description":"POST /templates/draft and POST /templates/revise queue work for the writer.","type":"boolean"},"instructions":{"description":"The house style, the instruction, tone and length of a draft, the goals reply and visit_site, a campaign's versions instruction and a preview filled from a list company are read.","type":"boolean"},"languages":{"description":"The two-letter codes of the languages the writer and the closing line take.","items":{"description":"A language code, like pl.","type":"string"},"type":"array"},"mentions":{"description":"GET /mentions, GET /senders/{id}/mentions and POST /templates/preview answer.","type":"boolean"},"message_batch":{"description":"POST /templates/batch saves a list of messages in one call.","type":"boolean"},"message_variants":{"description":"POST /templates/variants writes variants of a saved message, and the rotation style is kept at /rotation-style.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"twenty_messages":{"description":"A campaign takes up to twenty messages in template_ids, and template_group in their place.","type":"boolean"},"variants":{"description":"GET /keyword-variants answers a list.","type":"boolean"},"without_sender":{"description":"The mentions, the preview, the draft and the revision work with no sender_id.","type":"boolean"}},"required":["mentions","drafts","variants","without_sender","instructions","closing_lines","languages","message_batch","twenty_messages","message_variants","request_id"],"type":"object"},"OptOutRecorded":{"description":"The company will not be contacted again.","properties":{"domain":{"description":"The website recorded.","type":"string"},"recorded":{"description":"Always true.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"scope":{"description":"everyone or customer.","type":"string"}},"required":["request_id"],"type":"object"},"OrgSettings":{"description":"Your organisation's time zone and daily digest settings.","properties":{"digest_available":{"description":"Whether the digest can be set from this call. False with an X-Customer-Ref: the digest belongs to the account.","type":"boolean"},"digest_enabled":{"description":"Whether your organisation wants the digest.","type":"boolean"},"digest_hour":{"description":"The hour of the day the digest goes out, in your time zone.","maximum":23,"minimum":0,"type":"integer"},"digest_recipients":{"description":"The e-mail addresses the digest goes to.","items":{"type":"string"},"type":"array"},"digest_switch_on":{"description":"Whether the digest is switched on for your organisation at all. Off, nothing goes out whatever digest_enabled says.","type":"boolean"},"last_digest_sent_at":{"description":"When the last digest went out.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"time_zone":{"description":"The zone name your hours are read in.","example":"Europe/Berlin","type":"string"},"time_zone_source":{"description":"Where the zone came from: set by you, or taken from elsewhere when you never set one.","type":"string"},"updated_at":{"description":"When these settings were last changed.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"}},"required":["time_zone","time_zone_source","digest_hour","digest_recipients","digest_enabled","digest_switch_on","digest_available","last_digest_sent_at","updated_at"],"type":"object"},"OwnOfficeHours":{"description":"A campaign's own office hours, in the time zone of its country.","properties":{"close_hour":{"description":"The hour sending stops, 1 to 24.","maximum":24,"minimum":1,"type":"integer"},"days":{"description":"The days sending may happen, 1 (Monday) to 7 (Sunday).","items":{"description":"A day.","maximum":7,"minimum":1,"type":"integer"},"type":"array"},"open_hour":{"description":"The hour sending may start, 0 to 23.","maximum":23,"minimum":0,"type":"integer"}},"required":["open_hour","close_hour","days"],"type":"object"},"OwnerSet":{"description":"The company, with who looks after it now.","properties":{"domain":{"description":"The company site.","example":"example.com","type":"string"},"owner_name":{"description":"Their name.","nullable":true,"type":"string"},"owner_user_id":{"description":"Who looks after it now. Null when it was cleared.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"target_id":{"description":"The company on the campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["target_id","domain","owner_user_id","owner_name","request_id"],"type":"object"},"OwnersSet":{"description":"Who looks after the companies now, with one answer per id or web address sent.","properties":{"items":{"description":"One answer per id or web address sent, in the order first sent. One sent twice is answered once.","items":{"description":"What happened to one company.","properties":{"campaigns":{"description":"On how many campaigns the company was changed: 0 or 1 for an id, as many as it is on for a web address.","minimum":0,"type":"integer"},"domain":{"description":"The company site, or the web address as it was sent when it is not one. Null when no company with that id was found.","example":"example.com","nullable":true,"type":"string"},"result":{"description":"What happened to it. set: its owner is now the one sent, or none. skipped: left as it was: why says why.","enum":["set","skipped"],"type":"string"},"target_id":{"description":"The company on its campaign, as it was sent. Null when web addresses were sent.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"why":{"description":"Why it was left as it was. Null when it was changed. not_found: no company of yours with that id or web address, on a campaign that has not been thrown away. campaign_cancelled: the company is on a cancelled campaign; send its web address to change it there too. not_a_domain: what was sent is not a web address.","enum":["not_found","campaign_cancelled","not_a_domain"],"nullable":true,"type":"string"}},"required":["target_id","domain","result","why","campaigns"],"type":"object"},"type":"array"},"owner_name":{"description":"Their name. Null when the owner was cleared.","nullable":true,"type":"string"},"owner_user_id":{"description":"Who looks after them now. Null when the owner was cleared.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"set":{"description":"How many ids or web addresses were changed.","minimum":0,"type":"integer"},"skipped":{"description":"How many were left as they were.","minimum":0,"type":"integer"}},"required":["owner_user_id","owner_name","set","skipped","items","request_id"],"type":"object"},"Page":{"description":"Which slice of a listing this is.","properties":{"limit":{"description":"How many rows were asked for at most.","type":"integer"},"offset":{"description":"How many rows were skipped.","type":"integer"},"total":{"description":"How many rows there are in all. Null when the listing does not count.","nullable":true,"type":"integer"}},"required":["limit","offset","total"],"type":"object"},"PersonBarred":{"description":"What barring the person did.","properties":{"blocked":{"description":"Always true: the value is never extracted again.","type":"boolean"},"kind":{"description":"What was barred. email: an e-mail address. phone: a phone number.","enum":["email","phone"],"type":"string"},"new":{"description":"Whether the bar is new; false when it was already in place.","type":"boolean"},"removed":{"description":"How many of your team's extracted contacts carried it and were removed.","minimum":0,"type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["kind","removed","new","blocked","request_id"],"type":"object"},"PhoneType":{"description":"What kind of phone number. mobile: a mobile. landline: a landline. whatsapp: a WhatsApp number.","enum":["mobile","landline","whatsapp"],"type":"string"},"Presence":{"description":"Whether a person was available when a reply was routed to them. no_calendar: the person has no presence calendar connected, so availability was not known. unknown: the calendar gave no answer. available: the person was available. away: the person was away.","enum":["no_calendar","unknown","available","away"],"type":"string"},"Problem":{"description":"What stopped the last attempt, in customer words.","properties":{"code":{"description":"A short code for the kind of problem.","example":"site_unreachable","type":"string"},"message":{"description":"One sentence a person can act on.","type":"string"}},"required":["code","message"],"type":"object"},"ProductEmailSettings":{"allOf":[{"$ref":"#/components/schemas/ProductEmailSettingsDetail"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"ProductEmailSettingsChanged":{"allOf":[{"$ref":"#/components/schemas/ProductEmailSettingsDetail"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"ProductEmailSettingsDetail":{"description":"Which product emails go to the billing contact.","properties":{"campaign_finished":{"description":"Email when a campaign finished.","type":"boolean"},"contact_set":{"description":"Whether a billing contact is saved (notify_email of PATCH /credit/settings); without one no email goes.","type":"boolean"},"on":{"description":"Whether product emails are offered for your account yet; while false none is sent.","type":"boolean"},"research_ready":{"description":"Email when the research of a campaign is done.","type":"boolean"},"runs_out_soon":{"description":"Email when the credit runs out within 3 days at the current pace.","type":"boolean"}},"required":["on","contact_set","research_ready","campaign_finished","runs_out_soon"],"type":"object"},"ProductEmails":{"description":"The product emails queued and sent, newest first.","properties":{"emails":{"description":"Newest first, up to limit.","items":{"description":"One product email.","properties":{"campaign_id":{"description":"The campaign it is about; null for runs_out_soon.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"created_at":{"description":"When it was queued.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"id":{"description":"The email.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"kind":{"description":"What it is about. research_ready: the research of a campaign is done. campaign_finished: a campaign finished. runs_out_soon: the credit runs out soon.","enum":["research_ready","campaign_finished","runs_out_soon"],"type":"string"},"sent_at":{"description":"When it was sent.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"state":{"description":"queued, sending, sent or failed.","type":"string"},"subject":{"description":"Its subject.","type":"string"}},"required":["id","kind","subject","campaign_id","state","created_at","sent_at"],"type":"object"},"type":"array"},"on":{"description":"Whether product emails are offered for your account yet.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["on","emails","request_id"],"type":"object"},"ProgressCount":{"description":"How many are done, of how many.","properties":{"done":{"description":"How many are done.","minimum":0,"type":"integer"},"total":{"description":"How many there are to do. Null when there is no set number.","minimum":0,"nullable":true,"type":"integer"}},"required":["done","total"],"type":"object"},"Protection":{"description":"What guards the contact form. none: nothing. honeypot: a hidden trap box. recaptcha_v2: a tick-box challenge. recaptcha_v3: an unseen score. hcaptcha: a picture challenge. turnstile: a managed challenge. image: a picture with letters to type. js_challenge: a script the browser must pass first. unknown: something not recognised.","enum":["none","honeypot","recaptcha_v2","recaptcha_v3","hcaptcha","turnstile","image","js_challenge","unknown"],"type":"string"},"ReasonGroup":{"description":"Why a company was not delivered, in groups. delivered: the enquiry was delivered. sent_unconfirmed: sent, the site did not confirm it. site_refused: the site refused the send. challenge: a challenge stood in the way. no_way_in: no contact form could be reached. not_a_target: not a company to write to. site_unreachable: the site did not answer. form_needs_something: the form asked for something we do not have. form_would_not_fill: a box could not be filled. our_fault: a fault on our side. held_back: held back on purpose. unrecognised: a reason not yet named. not_recorded: no reason was recorded.","enum":["delivered","sent_unconfirmed","site_refused","challenge","no_way_in","not_a_target","site_unreachable","form_needs_something","form_would_not_fill","our_fault","held_back","unrecognised","not_recorded"],"type":"string"},"RecordedAnswer":{"description":"An answer a company gave, as recorded.","properties":{"channel":{"$ref":"#/components/schemas/ResponseChannel"},"domain":{"description":"The company site.","example":"example.com","type":"string"},"id":{"description":"The answer id.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"kind":{"$ref":"#/components/schemas/ResponseKind"},"note":{"description":"A note by whoever recorded it.","nullable":true,"type":"string"},"occurred_at":{"description":"When the company answered.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"recorded_at":{"description":"When it was recorded.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"recorded_via":{"$ref":"#/components/schemas/RecordedVia"},"target_id":{"description":"The company on the campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["id","target_id","domain","kind","channel","occurred_at","note","recorded_via","recorded_at"],"type":"object"},"RecordedVia":{"description":"Who recorded the answer. portal: a person, on the screen. api: your own system, through this API. mailbox: the connected mailbox, on its own.","enum":["portal","api","mailbox"],"type":"string"},"RefusalKind":{"description":"What a refusal is, in error.kind, for the few refusals a program is expected to react to. Absent on every other refusal. LIST_CHANGED: the list changed after it was reviewed or signed for: read it again, review, sign again. LIST_SIGNED: the list has been signed for and is closed to changes: start a new campaign. NOT_REMOVED_BY_REVIEWER: the company was not taken off by a reviewer, so there is nothing to put back. SENDER_LINK_NOT_OFFERED: a message cannot be linked to a saved sender yet: save it without one. BATCH_INVALID: one or more messages of the list cannot be saved and none was: details.messages names each place, field and reason. TEMPLATES_AND_GROUP: template_ids (or template_id) and template_group were both sent: send one of them. TEMPLATE_GROUP_NOT_OFFERED: choosing messages by group is off for your account: send template_ids. REPLY_HANDLING_NOT_OFFERED: handling replies (status, owner, tie by hand) is off for your account. NOT_A_REPLY: only a mail read as a reply can be tied to a company by hand, or tagged interested or not interested. REPLY_INTEREST_NOT_OFFERED: tagging replies interested or not interested is off for your account. CHARGE_REPORT_NOT_OFFERED: a campaign's charged and not charged sends are not available for your account yet. PRODUCT_EMAILS_NOT_OFFERED: product emails to the billing contact are not available for your account yet. TARGET_NOT_ON_CAMPAIGN: the company is not on that campaign: pick one from GET /v1/campaigns/{id}/targets. NOT_SENT_BEFORE_MAIL: nothing was sent to that company before the mail arrived: pick one listed with sent_before set to the mail's received_at. OWNER_NOT_STAFF: the person named as owner is not an active member of your staff (or, for a customer's view, not one of that customer's people). DRAFT_LIMIT: your organisation (or, with an X-Customer-Ref, that customer) already holds 200 draft campaigns: start one or throw one away with DELETE /campaigns/{id} first. BULK_ACTIONS_NOT_OFFERED: acting on several companies at once is off for your account: use the calls for one company. LIST_FIELDS_NOT_OFFERED: details on list entries are off for your account: add companies with POST /lists/{id}/domains. FIELD_KEY_INVALID: a key of fields is not a field key: 1 to 40 characters of a to z, 0 to 9 and _, starting with a letter, never about a person; nothing was saved. TOO_MANY_FIELDS: the call would give the list more than 20 keys of fields; nothing was saved. FALLBACK_EMPTY: a fill-in's fallback, {{name|...}}, is empty: write the words to use, or take out the | and what follows it; the message names the fill-in and nothing was saved. FALLBACK_INVALID: a fill-in's fallback is longer than 100 characters, runs over more than one line or holds a |; nothing was saved. TEST_SEND_NOT_OFFERED: sending a test email of a message is off for your account; nothing was queued. TEST_TARGET_NOT_ALLOWED: a test goes only to your own sign-in address or that of an active member of your account; nothing was queued. TEST_LIMIT_REACHED: the test emails of today are used up (20 per account, UTC day); status 429, and Retry-After, resets_at and retry_after_s say when more can be sent. CAMPAIGN_NOT_FOUND: a campaign_id given to GET /board is not one of your campaigns, or was deleted; status 404.","enum":["LIST_CHANGED","LIST_SIGNED","NOT_REMOVED_BY_REVIEWER","SENDER_LINK_NOT_OFFERED","BATCH_INVALID","TEMPLATES_AND_GROUP","TEMPLATE_GROUP_NOT_OFFERED","REPLY_HANDLING_NOT_OFFERED","NOT_A_REPLY","REPLY_INTEREST_NOT_OFFERED","CHARGE_REPORT_NOT_OFFERED","PRODUCT_EMAILS_NOT_OFFERED","TARGET_NOT_ON_CAMPAIGN","NOT_SENT_BEFORE_MAIL","OWNER_NOT_STAFF","DRAFT_LIMIT","BULK_ACTIONS_NOT_OFFERED","LIST_FIELDS_NOT_OFFERED","FIELD_KEY_INVALID","TOO_MANY_FIELDS","FALLBACK_EMPTY","FALLBACK_INVALID","TEST_SEND_NOT_OFFERED","TEST_TARGET_NOT_ALLOWED","TEST_LIMIT_REACHED","CAMPAIGN_NOT_FOUND"],"type":"string"},"Regions":{"description":"The regions of a country.","properties":{"country_code":{"description":"The country.","example":"DE","pattern":"^[A-Z]{2}$","type":"string"},"regions":{"description":"By name.","items":{"description":"A region.","properties":{"name":{"description":"The region, as the region filter takes it.","type":"string"},"town_count":{"description":"How many towns it holds.","minimum":0,"type":"integer"}},"required":["name","town_count"],"type":"object"},"type":"array"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["country_code","regions","request_id"],"type":"object"},"RegisterCompaniesAdded":{"description":"What adding register companies did, as counts; the websites are found afterwards.","properties":{"already_on_the_list":{"description":"How many had the name, town and postcode of a company already on the list or earlier in this call.","minimum":0,"type":"integer"},"checked":{"description":"How many of the names this search queued have been looked up, with or without a website. Null while this feature is off for your account.","minimum":0,"nullable":true,"type":"integer"},"count_capped":{"description":"True when matched stopped at 10,000, as count does in the search; matched is then at least that.","type":"boolean"},"kept":{"description":"How many of them had a website and are on the list. Null while this feature is off for your account.","minimum":0,"nullable":true,"type":"integer"},"list_id":{"description":"The list.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"matched":{"description":"How many active companies match the search.","minimum":0,"type":"integer"},"offered":{"description":"How many names were offered to the list.","minimum":0,"type":"integer"},"queued":{"description":"How many will be looked for.","minimum":0,"type":"integer"},"refusals":{"description":"The first fifty refusals.","items":{"description":"One refused company.","properties":{"line":{"description":"Its position in this call's batch, from 1.","minimum":1,"type":"integer"},"reason":{"description":"Why it was refused.","type":"string"}},"required":["line","reason"],"type":"object"},"type":"array"},"refused":{"description":"How many were refused.","minimum":0,"type":"integer"},"remaining":{"description":"How many matching companies are still not on the list; send the same search again to add them. While this feature is on for your account (with locations, near or territory, the matching feature too), how many come after where this call stopped, in register-number order, and 0 once the search has reached the end.","minimum":0,"type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"sent":{"description":"How many were added in this call, at most limit. While this feature is on for your account (with locations, near or territory, the matching feature too), a call stops after a few seconds, so it can add fewer, even none, with more remaining.","minimum":0,"type":"integer"},"skipped_on_list":{"description":"How many of them were on the list already and were skipped. While this feature is on for your account (with locations, near or territory, the matching feature too), only those this call passed over.","minimum":0,"type":"integer"},"still_looking":{"description":"How many of them are still being looked up. Null while this feature is off for your account.","minimum":0,"nullable":true,"type":"integer"},"topping_up":{"description":"True while this feature is on for your account: once the names are looked up and kept is under wanted, the next companies are queued by themselves until the list has wanted or the register runs out. False: exactly limit companies are taken and those with a website kept.","type":"boolean"},"wanted":{"description":"How many companies with a website this search has asked for on this list in all, every call of it added up. Null while this feature is off for your account.","minimum":0,"nullable":true,"type":"integer"}},"required":["list_id","matched","count_capped","skipped_on_list","sent","remaining","offered","queued","already_on_the_list","refused","refusals","wanted","checked","kept","still_looking","topping_up","request_id"],"type":"object"},"RegisterFacets":{"description":"What a country's company register holds, counted against the other choices.","properties":{"activities":{"description":"Every division of the activity classification, by code, with how many active companies in the chosen area have it as their main activity.","items":{"description":"A division.","properties":{"code":{"description":"Two digits, as the activity filter takes it.","type":"string"},"companies":{"description":"How many companies.","minimum":0,"type":"integer"},"label":{"description":"What the division covers, in English.","type":"string"}},"required":["code","label","companies"],"type":"object"},"type":"array"},"classes":{"description":"The four-digit activities found in the chosen area, by code.","items":{"description":"A class.","properties":{"code":{"description":"As the activity filter takes it, two digits, a dot and two digits.","type":"string"},"companies":{"description":"How many companies.","minimum":0,"type":"integer"},"label":{"description":"What the class covers, in the register's own language.","nullable":true,"type":"string"}},"required":["code","label","companies"],"type":"object"},"type":"array"},"companies":{"description":"How many active companies the register holds for the country.","minimum":0,"type":"integer"},"counties":{"description":"With a region: its counties with companies of the chosen activities, by name. Empty without one.","items":{"description":"A county.","properties":{"companies":{"description":"How many companies.","minimum":0,"type":"integer"},"county":{"description":"As the county filter takes it.","type":"string"}},"required":["county","companies"],"type":"object"},"type":"array"},"fresh_at":{"description":"When the copy of the register was last brought up to date, null before the first copy.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"places":{"description":"Towns of the campaign towns list, most companies first: every town given by locations, near or territory, or with a region or a county the 200 there with most companies of the chosen activities. Empty otherwise, and always while this feature is off for your account.","items":{"description":"A campaign town.","properties":{"companies":{"description":"How many companies are found under it.","minimum":0,"type":"integer"},"location_code":{"description":"As locations takes it, and PUT /campaigns/{id}/locations.","type":"integer"},"name":{"description":"The town's name.","type":"string"},"region":{"description":"Its first-level region, null when the provider names none.","nullable":true,"type":"string"},"with_website":{"description":"How many of them give a website in the register.","minimum":0,"type":"integer"}},"required":["location_code","name","region","companies","with_website"],"type":"object"},"type":"array"},"regions":{"description":"The regions with companies of the chosen activities, by name.","items":{"description":"A region.","properties":{"companies":{"description":"How many companies.","minimum":0,"type":"integer"},"region":{"description":"As the region filter takes it.","type":"string"}},"required":["region","companies"],"type":"object"},"type":"array"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"towns":{"description":"With a region or a county: the 200 towns there with most companies of the chosen activities. Empty without either.","items":{"description":"A town.","properties":{"companies":{"description":"How many companies.","minimum":0,"type":"integer"},"county":{"description":"Its county.","nullable":true,"type":"string"},"town":{"description":"As the town filter takes it.","type":"string"}},"required":["town","county","companies"],"type":"object"},"type":"array"}},"required":["activities","classes","regions","counties","towns","places","companies","fresh_at","request_id"],"type":"object"},"RegisterSearch":{"description":"How many register companies match, and up to 20 of them by name.","properties":{"count":{"description":"How many active companies match.","minimum":0,"type":"integer"},"count_capped":{"description":"True when counting stopped at 10,000: any of several activities with any_activity, or any_activity in a town, is counted company by company. count and with_website are then at least these numbers. While this feature is on for your account, those are counted in full, and only any_activity with towns of the campaign towns list can still stop. While the matching feature is on too, that is counted in full as well.","type":"boolean"},"left_out_known":{"description":"How many companies you already have were left out; 0 when new_to_us is false. A screen can say: left out N companies you already have.","minimum":0,"type":"integer"},"new_to_us":{"description":"True when companies you already have (by register number or website, on a campaign or a list, or written to) were left out of count, with_website and sample, as new_to_us asks by default. False when new_to_us=false was sent or this feature is off for your account.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"sample":{"description":"Up to 20 of them, by name.","items":{"description":"A company.","properties":{"activity":{"description":"Its main activity class.","nullable":true,"type":"string"},"activity_text":{"description":"Its main activity, in the register's own language.","nullable":true,"type":"string"},"county":{"description":"The county of its seat.","nullable":true,"type":"string"},"name":{"description":"Its registered name.","type":"string"},"region":{"description":"The region of its seat.","nullable":true,"type":"string"},"register_id":{"description":"Its number in the register.","type":"string"},"town":{"description":"The town of its seat.","nullable":true,"type":"string"},"website":{"description":"The website its register entry gives, if any.","example":"example.com","nullable":true,"type":"string"}},"required":["register_id","name","town","county","region","activity","activity_text","website"],"type":"object"},"type":"array"},"with_website":{"description":"How many of them give a website in the register.","minimum":0,"type":"integer"}},"required":["count","with_website","count_capped","new_to_us","left_out_known","sample","request_id"],"type":"object"},"ReplyAddress":{"description":"Your team's forwarding address for replies.","properties":{"address":{"description":"The address the team's mailbox forwards replies to, or null until one is made.","format":"email","nullable":true,"type":"string"},"confirmation":{"$ref":"#/components/schemas/ReplyAddressConfirmation","nullable":true},"created_at":{"description":"When the address was made.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"daily_limit":{"description":"How many mails a day it takes; more are dropped until the next day.","minimum":0,"type":"integer"},"last_mail_at":{"description":"When mail last came to it.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"mails_today":{"description":"How many mails came to it today (UTC).","minimum":0,"type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["address","created_at","last_mail_at","mails_today","daily_limit","confirmation","request_id"],"type":"object"},"ReplyAddressConfirmation":{"description":"Gmail's forwarding confirmation, kept seven days so the setup can be finished.","properties":{"code":{"description":"The confirmation code to type into the mail settings.","nullable":true,"pattern":"^[0-9]{4,12}$","type":"string"},"link":{"description":"The confirmation link, always on a google.com address.","format":"uri","nullable":true,"type":"string"},"provider":{"description":"Which mail service asked: gmail.","enum":["gmail"],"type":"string"},"received_at":{"description":"When the confirmation came.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"}},"required":["provider","code","link","received_at"],"type":"object"},"ReplyAddressMade":{"description":"The new forwarding address for replies.","properties":{"address":{"description":"The address the team's mailbox forwards replies to.","format":"email","type":"string"},"confirmation":{"$ref":"#/components/schemas/ReplyAddressConfirmation","nullable":true},"created_at":{"description":"When the address was made.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"daily_limit":{"description":"How many mails a day it takes; more are dropped until the next day.","minimum":0,"type":"integer"},"last_mail_at":{"description":"When mail last came to it.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"mails_today":{"description":"How many mails came to it today (UTC).","minimum":0,"type":"integer"},"replaced":{"description":"Whether an earlier address was replaced; it stopped at once.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["address","created_at","last_mail_at","mails_today","daily_limit","confirmation","replaced","request_id"],"type":"object"},"ResearchProgress":{"description":"How the research for a campaign is going. Before research starts, only stage is given, as null.","properties":{"companies":{"$ref":"#/components/schemas/ProgressCount"},"eta_max_minutes":{"description":"The longest time left, in minutes. Null with eta_min_minutes.","minimum":0,"nullable":true,"type":"integer"},"eta_min_minutes":{"description":"The shortest time left, in minutes, while forms are still being checked. Null when no honest range can be given, for example when nothing was checked lately.","minimum":0,"nullable":true,"type":"integer"},"finished_at":{"description":"When research finished. Null until stage is ready.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"forms":{"$ref":"#/components/schemas/ProgressCount"},"stage":{"description":"Where the research is. Null before it starts. finding_companies: companies are still being found. finding_forms: the companies found are having their contact forms checked. ready: research is finished.","enum":["finding_companies","finding_forms","ready"],"nullable":true,"type":"string"}},"required":["stage"],"type":"object"},"ResendQueued":{"description":"What was queued for another try.","properties":{"endpoint_id":{"description":"The endpoint.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"more":{"description":"Whether failed deliveries remain beyond this batch.","type":"boolean"},"queued":{"description":"How many were queued.","minimum":0,"type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"since":{"description":"Failed deliveries from this moment on were queued.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"}},"required":["endpoint_id","since","queued","more","request_id"],"type":"object"},"ResponseChannel":{"description":"Where the answer came in. form: through the contact form. email: by email. phone: by phone. other: another way.","enum":["form","email","phone","other"],"type":"string"},"ResponseKind":{"description":"What the company did. replied: wrote back. auto_reply: an automatic reply came. bounced: the message bounced. objected: asked not to be contacted.","enum":["replied","auto_reply","bounced","objected"],"type":"string"},"ResumeQueued":{"allOf":[{"$ref":"#/components/schemas/Job"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"RetriesReopened":{"description":"The companies that were put back for another try.","properties":{"reopened_count":{"description":"How many were put back.","minimum":0,"type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"reserved_cents":{"description":"How much is set aside. Whole US cents.","minimum":0,"type":"integer"},"solve_budget_cents":{"description":"How much may be spent on challenge solving. Whole US cents.","minimum":0,"type":"integer"}},"required":["reopened_count","solve_budget_cents","reserved_cents","request_id"],"type":"object"},"RevisionQueued":{"description":"The writer was asked to change a message. Read it at Location.","properties":{"draft_id":{"description":"The draft to read at GET /templates/drafts/{id}.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"offered":{"description":"Whether revisions are offered. False while this feature is off for your account, and nothing is queued.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"state":{"description":"wanted: the writer has it in its queue.","enum":["wanted"],"nullable":true,"type":"string"}},"required":["offered","draft_id","state","request_id"],"type":"object"},"RotationStyle":{"description":"The rotation style the writer follows when it writes variants for your team.","properties":{"offered":{"description":"Whether the rotation style is offered. False while this feature is off for your account, and nothing else is answered.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"revision":{"description":"How many times it was saved; 0 when never.","minimum":0,"type":"integer"},"text":{"description":"The rotation style, at most 1000 characters. Null when none is set.","nullable":true,"type":"string"},"updated_at":{"description":"When it was last saved.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"updated_by":{"description":"Who last saved it.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"}},"required":["offered","request_id"],"type":"object"},"RotationStyleHistory":{"description":"Every saved rotation style, newest first.","properties":{"offered":{"description":"Whether the history is offered. False while this feature is off for your account.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"revisions":{"description":"The saves, newest first.","items":{"description":"One save.","properties":{"revision":{"description":"The revision number, 1 for the first.","minimum":1,"type":"integer"},"saved_at":{"description":"When it was saved.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"saved_by":{"description":"Who saved it.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"text":{"description":"The rotation style saved. Null when it was cleared.","nullable":true,"type":"string"}},"required":["revision","text","saved_at","saved_by"],"type":"object"},"type":"array"}},"required":["offered","request_id"],"type":"object"},"RotationStyleSaved":{"description":"The rotation style was saved. Saving the same text again changes nothing.","properties":{"offered":{"description":"Whether saving is offered. False while this feature is off for your account, and nothing changed.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"revision":{"description":"Its revision number now.","minimum":0,"type":"integer"},"text":{"description":"The rotation style now. Null when it was cleared.","nullable":true,"type":"string"},"updated_at":{"description":"When it was saved.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"updated_by":{"description":"Who saved it.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"}},"required":["offered","request_id"],"type":"object"},"RoutingDecision":{"description":"One reply that was routed, and why it went where it did.","properties":{"campaign_id":{"description":"The campaign the reply came in on.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"decided_at":{"description":"When it was decided.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"domain":{"description":"The company site.","example":"example.com","type":"string"},"handler_name":{"description":"Their name.","nullable":true,"type":"string"},"handler_user_id":{"description":"Who the reply went to.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"owner_set":{"description":"Whether the company's owner was set to that person.","type":"boolean"},"presence":{"allOf":[{"$ref":"#/components/schemas/Presence"}],"description":"Whether that person was available at the time.","nullable":true},"reason":{"description":"Why, in a sentence.","type":"string"},"response_id":{"description":"The reply itself.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"rule_kind":{"allOf":[{"$ref":"#/components/schemas/RoutingRuleKind"}],"description":"The kind of rule that decided, or null when no rule matched.","nullable":true},"target_id":{"description":"The company on that campaign: the row a screen opens.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["domain","campaign_id","target_id","response_id","rule_kind","handler_user_id","handler_name","presence","reason","owner_set","decided_at"],"type":"object"},"RoutingRule":{"description":"One reply routing rule.","properties":{"created_at":{"description":"When the rule was made.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"decisions_30d":{"description":"How many replies this rule routed in the last 30 days.","minimum":0,"type":"integer"},"handler_group":{"description":"The people a round_robin rule turns over.","items":{"description":"One person of the group.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"nullable":true,"type":"array"},"handler_group_names":{"description":"The same people, with their names.","items":{"description":"One person of the group.","properties":{"full_name":{"description":"Their name.","nullable":true,"type":"string"},"user_id":{"description":"The person.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["user_id","full_name"],"type":"object"},"type":"array"},"handler_name":{"description":"Their name.","nullable":true,"type":"string"},"handler_user_id":{"description":"The person a matching reply goes to.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"id":{"description":"The rule. Send it back when you save and the rule keeps its history; leave it out and the rule is new.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"is_on":{"description":"Whether the rule is applied.","type":"boolean"},"kind":{"$ref":"#/components/schemas/RoutingRuleKind"},"match_value":{"description":"What the rule matches: a country code, a language code or a product line. Null for the other kinds.","nullable":true,"type":"string"},"priority":{"description":"Its place in the order: lowest first.","maximum":50,"minimum":1,"type":"integer"},"updated_at":{"description":"When it was last changed.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"}},"required":["id","priority","kind","match_value","handler_user_id","handler_name","handler_group","handler_group_names","is_on","created_at","updated_at","decisions_30d"],"type":"object"},"RoutingRuleKind":{"description":"What a reply routing rule keys on. round_robin: each reply goes to the next person in the group, in turn. country: a reply from a company in the given country goes to one person. language: a reply from a company written to in the given language goes to one person. product_line: a reply on a campaign with the given product line goes to one person. campaign_owner: a reply goes to whoever made the campaign.","enum":["round_robin","country","language","product_line","campaign_owner"],"type":"string"},"RoutingRuleSet":{"description":"Your reply routing rules, whether routing is on, and the latest decisions.","properties":{"recent_decisions":{"description":"The latest twenty replies that were routed, newest first.","items":{"$ref":"#/components/schemas/RoutingDecision"},"type":"array"},"routing_switch_on":{"description":"Whether reply routing is switched on for you at all. Off, the rules are kept but no reply is routed.","type":"boolean"},"rules":{"description":"The rules, lowest priority first.","items":{"$ref":"#/components/schemas/RoutingRule"},"type":"array"}},"required":["rules","routing_switch_on","recent_decisions"],"type":"object"},"RoutingRules":{"allOf":[{"$ref":"#/components/schemas/RoutingRuleSet"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"RoutingRulesReplaced":{"allOf":[{"$ref":"#/components/schemas/RoutingRuleSet"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"SavedList":{"description":"A saved list of domains.","properties":{"can_rename_or_delete":{"description":"Whether the caller may rename or delete it.","type":"boolean"},"created_at":{"description":"When it was made.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"created_by":{"description":"Who made it.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"description":{"description":"What it is for.","nullable":true,"type":"string"},"domains":{"description":"How many domains are on it.","minimum":0,"type":"integer"},"id":{"description":"The list id.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"name":{"description":"Its name.","type":"string"},"owned_by_me":{"description":"Whether the caller made it.","type":"boolean"},"owner_name":{"description":"The name of who made it.","nullable":true,"type":"string"},"register_fill":{"description":"Where the register searches that fill this list stand, while this feature is on for your account; null for a list no register search filled with it on. A screen shows 'checked N, kept M with a website' and 'still looking for K' while still_looking is above 0.","nullable":true,"properties":{"checked":{"description":"How many names have been looked up.","minimum":0,"type":"integer"},"exhausted":{"description":"True when the register ran out of matching companies before wanted was reached; the list will not grow further from these searches.","type":"boolean"},"kept":{"description":"How many had a website and are on the list.","minimum":0,"type":"integer"},"still_looking":{"description":"How many are still being looked up.","minimum":0,"type":"integer"},"wanted":{"description":"How many companies with a website were asked for in all.","minimum":0,"type":"integer"}},"required":["wanted","checked","kept","still_looking","exhausted"],"type":"object"},"suppressed":{"description":"How many of those are on a do-not-contact list.","minimum":0,"type":"integer"},"updated_at":{"description":"When it last changed.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"}},"required":["id","name","description","created_at","updated_at","created_by","owner_name","owned_by_me","can_rename_or_delete","domains","suppressed","register_fill"],"type":"object"},"SavedListDeleted":{"description":"The list that was deleted.","properties":{"deleted":{"description":"The name of the list.","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["deleted","request_id"],"type":"object"},"SavedListDetail":{"allOf":[{"$ref":"#/components/schemas/SavedList"},{"description":"How the list spreads over countries.","properties":{"countries":{"description":"Its companies by country, most companies first; country_code null counts those whose country is not known, last among equals.","items":{"description":"One country.","properties":{"companies":{"description":"How many companies on the list are in it.","minimum":0,"type":"integer"},"country_code":{"description":"The country of the register the company was found in on this list. Null when not known.","example":"DE","nullable":true,"pattern":"^[A-Z]{2}$","type":"string"}},"required":["country_code","companies"],"type":"object"},"type":"array"}},"required":["countries"],"type":"object"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}],"description":"One saved list."},"SavedListDomains":{"description":"The domains on a saved list.","properties":{"description":{"description":"What it is for.","nullable":true,"type":"string"},"domains":{"description":"The domains, sorted.","items":{"description":"One domain on the list.","properties":{"added_at":{"description":"When it was added.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"added_by":{"description":"Who added it.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"added_by_name":{"description":"The name of who added it.","nullable":true,"type":"string"},"city":{"description":"The company's town as saved with POST /lists/{id}/rows. Only while details on list entries are on for your account.","nullable":true,"type":"string"},"company_name":{"description":"The company's name as saved with POST /lists/{id}/rows. Only while details on list entries are on for your account.","nullable":true,"type":"string"},"contacted":{"description":"Whether you have written to it.","type":"boolean"},"country_code":{"description":"The country of the register the company was found in on this list; the earliest such name decides. Null when not known, such as a website added by hand.","example":"DE","nullable":true,"pattern":"^[A-Z]{2}$","type":"string"},"domain":{"description":"The domain.","example":"example.com","type":"string"},"fields":{"additionalProperties":{"type":"string"},"description":"Your own details about the company, key and text, as saved with POST /lists/{id}/rows. Only while details on list entries are on for your account.","type":"object"},"last_contacted_at":{"description":"When you last wrote to it.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"note":{"description":"A note by whoever added it.","nullable":true,"type":"string"},"suppressed":{"description":"Whether it is on a do-not-contact list.","type":"boolean"}},"required":["domain","note","added_at","added_by","added_by_name","suppressed","contacted","last_contacted_at","country_code"],"type":"object"},"type":"array"},"field_keys":{"description":"The keys of fields any company on the list has, sorted. Only while details on list entries are on for your account.","items":{"type":"string"},"type":"array"},"list_id":{"description":"The list id.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"name":{"description":"Its name.","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["list_id","name","description","domains","request_id"],"type":"object"},"SavedListNames":{"description":"The company names on a saved list and what was found for each.","properties":{"counts":{"description":"How many names are in each state.","properties":{"found":{"description":"A website was found and added to the list.","minimum":0,"type":"integer"},"not_found":{"description":"No website passed the check.","minimum":0,"type":"integer"},"waiting":{"description":"Still being looked for.","minimum":0,"type":"integer"}},"required":["waiting","found","not_found"],"type":"object"},"fee_micros_per_website":{"description":"What each website found and added costs now, in micro-dollars; it comes back when the website is sent an enquiry. 0 when finding websites is free for this account. A name with no website found never costs anything.","type":"integer"},"list_id":{"description":"The list.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"names":{"description":"The names, in the order they were added.","items":{"description":"One company name.","properties":{"added_at":{"description":"When the name was added.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"city":{"description":"The town given with it.","nullable":true,"type":"string"},"country_code":{"description":"Its country.","example":"DE","pattern":"^[A-Z]{2}$","type":"string"},"domain":{"description":"The website found, when one was.","example":"example.com","nullable":true,"type":"string"},"name":{"description":"The name as it was given, or as the register gave it. Null for an entry sent by number alone that the register does not know.","nullable":true,"type":"string"},"not_found_reason":{"description":"Why nothing was found. Null unless state is not_found. register_unknown: The company register does not know this number. no_register: There is no name, and no register to ask for this country. no_website: No website passed the check.","enum":["register_unknown","no_register","no_website"],"nullable":true,"type":"string"},"postcode":{"description":"The postcode given with it.","nullable":true,"type":"string"},"register_id":{"description":"The company register number given with it (Siren or Siret in France, KRS or NIP in Poland), when one was.","nullable":true,"type":"string"},"resolved_at":{"description":"When the search ended.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"state":{"description":"Where the search stands. waiting: Still being looked for. found: A website whose pages carry the name and the town (or the register number) was found and added to the list. not_found: No website passed that check; nothing was added.","enum":["waiting","found","not_found"],"type":"string"}},"required":["name","city","postcode","country_code","register_id","state","not_found_reason","domain","added_at","resolved_at"],"type":"object"},"type":"array"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["list_id","fee_micros_per_website","counts","names","request_id"],"type":"object"},"SavedListOverlap":{"description":"The domains two saved lists share.","properties":{"list_id":{"description":"The list.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"other_list_id":{"description":"The other list.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"other_name":{"description":"The name of the other list.","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"shared":{"description":"The domains on both.","items":{"type":"string"},"type":"array"},"shared_count":{"description":"How many domains are on both.","minimum":0,"type":"integer"}},"required":["list_id","other_list_id","other_name","shared","shared_count","request_id"],"type":"object"},"SavedListSaved":{"description":"The list that was saved.","properties":{"list_id":{"description":"The list.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"name":{"description":"Its name.","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["list_id","name","request_id"],"type":"object"},"SavedLists":{"description":"Your saved lists.","properties":{"lists":{"description":"The lists, most recently changed first.","items":{"$ref":"#/components/schemas/SavedList"},"type":"array"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["lists","request_id"],"type":"object"},"Search":{"description":"The newest search on a campaign: the job that finds its companies.","properties":{"created_at":{"description":"When it was queued.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"finished_at":{"description":"When it finished.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"job_id":{"description":"The search job.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"problem":{"allOf":[{"$ref":"#/components/schemas/Problem"}],"nullable":true},"state":{"$ref":"#/components/schemas/JobState"}},"required":["job_id","state","created_at","finished_at","problem"],"type":"object"},"SearchHold":{"description":"The credit a search holds until its companies are sent to. A search for N companies holds N times the enquiry price; each enquiry sent is paid from it. When the campaign ends, or after hold_days, the hold is settled: fee_micros_per_company is charged for each company that could be written to and was not sent to, so a campaign that sends to all of them pays no fee. What is left is released.","properties":{"fee_micros":{"description":"The search fee charged, in micro-dollars. 0 when the search was free. Null until settled.","nullable":true,"type":"integer"},"fee_micros_per_company":{"description":"The search fee per company that could be written to and was not sent to, in micro-dollars. 0 means no fee.","type":"integer"},"found":{"description":"How many companies the search found.","minimum":0,"type":"integer"},"free_share":{"description":"Always 1: the search fee has no threshold, it is charged per company not sent to. Kept for older callers.","type":"number"},"free_when_sent":{"description":"How many must be sent to for the search to be free: all the companies that could be written to.","minimum":0,"type":"integer"},"held_count":{"description":"How many companies the search held for when it started. When pay_only_when_sent is true and the campaign has a send goal, no more than the goal had left.","minimum":0,"type":"integer"},"held_micros":{"description":"What the search held when it started, in micro-dollars, rounded up to whole cents.","type":"integer"},"left_cents":{"description":"left_micros in US cents.","minimum":0,"type":"integer"},"left_micros":{"description":"What it still holds, in micro-dollars, always whole cents rounded up. When pay_only_when_sent is true: the companies that can still be charged (not yet sent to, not refused, with a form or still being checked, plus those the search has not found yet while it runs), no more than the send goal has left, at the campaign's price now. Otherwise: once the search has finished, only the companies it found, less what was already paid for enquiries.","type":"integer"},"released_micros":{"description":"What was released, in micro-dollars. Null until settled.","nullable":true,"type":"integer"},"sendable":{"description":"How many of them can be written to (a contact form was found and they are not on a do-not-contact list).","minimum":0,"type":"integer"},"sent":{"description":"How many of those were sent to.","minimum":0,"type":"integer"},"settle_after":{"description":"When the hold is settled if the campaign has not ended by then.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"settle_reason":{"description":"Why it was settled. campaign_ended: the campaign ended. hold_days: hold_days passed.","enum":["campaign_ended","hold_days"],"nullable":true,"type":"string"},"settled_at":{"description":"When it was settled.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"state":{"description":"Where the hold is. open: still held. settled: settled and released.","enum":["open","settled"],"type":"string"},"unit_micros":{"description":"The enquiry price the hold was worked out at when it started, in micro-dollars.","type":"integer"}},"required":["state","held_count","unit_micros","held_micros","left_micros","left_cents","free_share","fee_micros_per_company","found","sendable","sent","free_when_sent","settle_after","settled_at","settle_reason","fee_micros","released_micros"],"type":"object"},"SendQueued":{"allOf":[{"$ref":"#/components/schemas/Job"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"SendWindow":{"description":"The hours enquiries are sent in for a country.","properties":{"catch_all":{"description":"Whether the shared window answered because the country has none of its own.","type":"boolean"},"country_code":{"description":"The country asked for, or * for the shared window.","type":"string"},"holidays":{"description":"The next public holidays, when sending pauses.","items":{"description":"A public holiday.","properties":{"day":{"description":"The date.","example":"2026-09-17","format":"date","type":"string"},"name":{"description":"Its name.","type":"string"}},"required":["day","name"],"type":"object"},"type":"array"},"next_open_slot":{"description":"The next moment sending is allowed.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"window":{"description":"The hours.","properties":{"close_hour":{"description":"The hour sending stops, 0 to 23.","type":"integer"},"days":{"description":"The days sending is allowed, 1 Monday to 7 Sunday.","items":{"maximum":7,"minimum":1,"type":"integer"},"type":"array"},"open_hour":{"description":"The hour sending starts, 0 to 23.","type":"integer"},"tz":{"description":"The time zone the hours are in.","example":"Europe/Berlin","type":"string"}},"required":["tz","open_hour","close_hour","days"],"type":"object"}},"required":["country_code","catch_all","window","holidays","next_open_slot","request_id"],"type":"object"},"Sender":{"description":"A saved sender: who an enquiry is sent as, picked when a message is written.","properties":{"country_code":{"description":"The country this sender is in, two capital letters. Null when not known.","nullable":true,"type":"string"},"created_at":{"description":"When it was saved.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"generated_fields":{"description":"The address fields the system chose with POST /senders/{id}/details: sender_street, sender_postcode, sender_city or sender_region. Show them as chosen for you; a field changed with PUT /senders/{id} leaves the list.","items":{"type":"string"},"type":"array"},"id":{"description":"The sender id.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"is_default":{"description":"Whether new messages start from it. One sender is the default.","type":"boolean"},"label":{"description":"What it is called on your screens.","type":"string"},"needs_country":{"description":"True when the country is missing.","type":"boolean"},"needs_name":{"description":"True when the first name is missing.","type":"boolean"},"sender_budget_range":{"description":"The budget range named when a form asks.","nullable":true,"type":"string"},"sender_city":{"description":"The sender's city.","nullable":true,"type":"string"},"sender_company":{"description":"The company the enquiry is sent as.","type":"string"},"sender_company_id":{"description":"The sender's company number.","nullable":true,"type":"string"},"sender_company_id_kind":{"description":"What kind of company number it is.","nullable":true,"type":"string"},"sender_company_size":{"description":"How big the sender's company is, in words.","nullable":true,"type":"string"},"sender_email":{"description":"The address replies go to.","type":"string"},"sender_first_name":{"description":"The sender's first name.","nullable":true,"type":"string"},"sender_how_found":{"description":"How the sender found the company, when a form asks.","nullable":true,"type":"string"},"sender_job_title":{"description":"The sender's job title.","nullable":true,"type":"string"},"sender_last_name":{"description":"The sender's last name.","nullable":true,"type":"string"},"sender_phone":{"description":"The sender's phone number.","nullable":true,"type":"string"},"sender_postcode":{"description":"The sender's postcode.","nullable":true,"type":"string"},"sender_product_interest":{"description":"The product or service the enquiry is about.","nullable":true,"type":"string"},"sender_region":{"description":"The sender's state, province or region.","nullable":true,"type":"string"},"sender_street":{"description":"The sender's street address.","nullable":true,"type":"string"},"sender_vat_id":{"description":"The sender's VAT number.","nullable":true,"type":"string"},"sender_website":{"description":"The sender's website.","nullable":true,"type":"string"},"updated_at":{"description":"When it last changed.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"used_by":{"description":"How many of your messages use it: linked to it once shared sender details are on, before that carrying exactly these details.","minimum":0,"type":"integer"}},"required":["id","label","is_default","used_by","country_code","needs_name","needs_country","created_at","updated_at","sender_company","sender_email","sender_phone","sender_website","sender_first_name","sender_last_name","sender_job_title","sender_city","sender_postcode","sender_region","sender_street","sender_company_id","sender_company_id_kind","sender_vat_id","sender_company_size","sender_budget_range","sender_product_interest","sender_how_found","generated_fields"],"type":"object"},"SenderDeleted":{"description":"The sender that was deleted.","properties":{"label":{"description":"Its label.","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"sender_id":{"description":"The sender.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["sender_id","label","request_id"],"type":"object"},"SenderDetail":{"description":"One saved sender.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"sender":{"$ref":"#/components/schemas/Sender"}},"required":["sender","request_id"],"type":"object"},"SenderDetailsFilled":{"description":"The sender's empty address fields were filled once with plausible values and stored.","properties":{"country":{"description":"The country the values are for: the one asked, else the sender's saved country; before shared sender details are on, else the VAT number's, the website's or email's domain, or PL.","type":"string"},"filled":{"description":"The fields filled this time; empty when there was nothing to fill.","items":{"type":"string"},"type":"array"},"kept_own_town":{"description":"True when the sender has a town of its own that is not the country's: nothing is filled beside it.","type":"boolean"},"messages_updated":{"description":"How many of your messages carried this sender unchanged and got the same values.","minimum":0,"type":"integer"},"offered":{"description":"Whether it is offered. False while this feature is off for your account, and nothing changed.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"sender":{"$ref":"#/components/schemas/Sender"},"sender_id":{"description":"The sender.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["offered","sender_id","country","filled","kept_own_town","messages_updated","sender","request_id"],"type":"object"},"SenderSaved":{"description":"The sender that was saved.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"sender":{"$ref":"#/components/schemas/Sender"},"sender_id":{"description":"The sender.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["sender_id","sender","request_id"],"type":"object"},"SenderUsage":{"description":"Which messages and unfinished campaigns use this sender.","properties":{"campaign_count":{"description":"How many campaigns those are.","minimum":0,"type":"integer"},"campaigns":{"description":"The campaigns not finished or cancelled that reach this sender.","items":{"description":"One campaign.","properties":{"id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"name":{"description":"Its name.","type":"string"},"state":{"description":"Its state.","type":"string"}},"required":["id","name","state"],"type":"object"},"type":"array"},"message_count":{"description":"How many messages are linked.","minimum":0,"type":"integer"},"messages":{"description":"The messages linked to this sender.","items":{"description":"One linked message.","properties":{"fill_ins":{"description":"The sender fill-ins it uses.","items":{"type":"string"},"type":"array"},"id":{"description":"The message.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"name":{"description":"Its name.","type":"string"}},"required":["id","name","fill_ins"],"type":"object"},"type":"array"},"offered":{"description":"Whether this is offered. False until shared sender details are on, with empty lists.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"running_campaign_count":{"description":"How many of them are sending now.","minimum":0,"type":"integer"}},"required":["offered","messages","message_count","campaigns","campaign_count","running_campaign_count","request_id"],"type":"object"},"Senders":{"description":"A page of your saved senders.","properties":{"limit":{"description":"How many rows were asked for at most.","type":"integer"},"offset":{"description":"How many rows were skipped.","type":"integer"},"page":{"$ref":"#/components/schemas/Page"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"senders":{"description":"The senders, the default first, then by label.","items":{"$ref":"#/components/schemas/Sender"},"type":"array"},"shared_entries":{"description":"Whether messages can link to a sender with sender_id.","type":"boolean"},"total":{"description":"How many rows there are in all.","minimum":0,"type":"integer"}},"required":["shared_entries","senders","total","limit","offset","request_id","page"],"type":"object"},"Sequence":{"description":"The follow-up sequence of a campaign.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"country_code":{"description":"The country of the campaign.","example":"DE","pattern":"^[A-Z]{2}$","type":"string"},"first_step":{"$ref":"#/components/schemas/SequenceStep"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"send_windows_on":{"description":"Whether sending keeps to the country's sending hours.","type":"boolean"},"sequences_on":{"description":"Whether follow-up sequences run at all.","type":"boolean"},"steps":{"description":"The steps after the first, in order.","items":{"$ref":"#/components/schemas/SequenceStep"},"type":"array"}},"required":["campaign_id","first_step","steps","sequences_on","send_windows_on","country_code","request_id"],"type":"object"},"SequenceKind":{"description":"What a sequence step does. form: an enquiry through the contact form. manual_linkedin: a task for a person, on LinkedIn. manual_facebook: a task for a person, on Facebook.","enum":["form","manual_linkedin","manual_facebook"],"type":"string"},"SequenceSet":{"description":"The sequence as it is now, and what changing it undid.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"country_code":{"description":"The country of the campaign.","example":"DE","pattern":"^[A-Z]{2}$","type":"string"},"dropped_todos":{"description":"How many open tasks for a person were dropped.","minimum":0,"type":"integer"},"first_step":{"$ref":"#/components/schemas/SequenceStep"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"send_windows_on":{"description":"Whether sending keeps to the country's sending hours.","type":"boolean"},"sequences_on":{"description":"Whether follow-up sequences run at all.","type":"boolean"},"steps":{"description":"The steps after the first, in order.","items":{"$ref":"#/components/schemas/SequenceStep"},"type":"array"},"withdrawn_touches":{"description":"How many pending follow-up sends were withdrawn.","minimum":0,"type":"integer"}},"required":["campaign_id","first_step","steps","sequences_on","send_windows_on","country_code","withdrawn_touches","dropped_todos","request_id"],"type":"object"},"SequenceStep":{"description":"One step of a follow-up sequence.","properties":{"gap_days":{"description":"Days after the previous step. Null for the first.","nullable":true,"type":"integer"},"kind":{"$ref":"#/components/schemas/SequenceKind"},"step_no":{"description":"Its number, from 1.","type":"integer"},"template_id":{"description":"The message it sends.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"template_name":{"description":"The name of that message.","nullable":true,"type":"string"}},"required":["step_no","gap_days","kind","template_id","template_name"],"type":"object"},"ServiceDelay":{"description":"A notice that work on a campaign is delayed on our side.","properties":{"code":{"description":"What the notice is. service_delay: work is delayed on our side.","enum":["service_delay"],"type":"string"},"expected_back_at":{"description":"When we expect work to carry on, when we have said so. Null otherwise. It clears by itself once that time passes.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"message":{"description":"The words to show the customer: the campaign is safe, nothing is lost, and it carries on by itself. While we have written a line of our own about this delay, it is that line.","type":"string"},"minutes":{"description":"Minutes since then, or null when not known.","minimum":0,"nullable":true,"type":"integer"},"since":{"description":"When work last moved, or null when not known.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"title":{"description":"A short title to show, in plain words.","type":"string"}},"required":["code","since","minutes","title","message","expected_back_at"],"type":"object"},"ServiceStatus":{"description":"Whether work is delayed on our side. Show title and message as given, as one bar across the app.","properties":{"expected_back_at":{"description":"When we expect work to carry on, when we have said so. Null otherwise, and always null when state is ok. It clears by itself once that time passes.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"message":{"description":"The words to show: everything is safe, nothing is lost, and it carries on by itself. While we have written a line of our own about this delay, it is that line. Null when state is ok.","nullable":true,"type":"string"},"minutes":{"description":"Minutes since then. Null when state is ok or it is not known.","minimum":0,"nullable":true,"type":"integer"},"offered":{"description":"Whether this notice is on for your account. False: state is always ok.","type":"boolean"},"recent":{"description":"The delays on our side in the last 30 days, newest first, at most 20, the one going on now included. An empty list while this is off for your account.","items":{"description":"One delay.","properties":{"ended_at":{"description":"When work carried on. Null while it lasts.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"minutes":{"description":"How long it lasted, or has lasted so far, in minutes.","minimum":0,"type":"integer"},"started_at":{"description":"When work stopped.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"}},"required":["started_at","ended_at","minutes"],"type":"object"},"type":"array"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"since":{"description":"When work last moved. Null when state is ok or it is not known.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"state":{"description":"How work is going. ok: work is moving. delayed: work on campaigns is paused on our side.","enum":["ok","delayed"],"type":"string"},"title":{"description":"A short title to show, in plain words. Null when state is ok.","nullable":true,"type":"string"}},"required":["offered","state","since","minutes","title","message","expected_back_at","recent","request_id"],"type":"object"},"Settings":{"allOf":[{"$ref":"#/components/schemas/OrgSettings"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"SettingsChanged":{"allOf":[{"$ref":"#/components/schemas/OrgSettings"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"Signoff":{"description":"What must be signed before a campaign sends, and whether it was.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"country_code":{"description":"The country of the campaign.","example":"DE","pattern":"^[A-Z]{2}$","type":"string"},"language_code":{"description":"The language the enquiries are written in.","example":"de","type":"string"},"list_hash":{"description":"A fingerprint of the list as it is now.","nullable":true,"type":"string"},"ready":{"description":"How many companies have a contact form read and ready.","minimum":0,"type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"send_enquiries":{"description":"Whether enquiries are sent at all.","type":"boolean"},"signed":{"description":"The sign-off, once given.","nullable":true,"properties":{"at":{"description":"When it was signed.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"by":{"description":"Who signed.","properties":{"id":{"description":"Their id.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"name":{"description":"Their name.","nullable":true,"type":"string"}},"required":["id","name"],"type":"object"},"companies":{"description":"How many companies were on the signed list.","minimum":0,"type":"integer"},"key_prefix":{"description":"The key it was signed with, when signed through the API.","nullable":true,"type":"string"},"list_hash":{"description":"A fingerprint of the list as it was signed.","nullable":true,"type":"string"}},"required":["at","by","key_prefix","list_hash","companies"],"type":"object"},"state":{"$ref":"#/components/schemas/CampaignState"},"template":{"description":"The message the campaign sends.","nullable":true,"properties":{"id":{"description":"The message id.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"name":{"description":"Its name.","type":"string"}},"required":["id","name"],"type":"object"},"unprofiled":{"description":"How many sites have not been read yet.","minimum":0,"type":"integer"},"wording":{"description":"The attestation wording to show and accept.","type":"string"}},"required":["campaign_id","state","send_enquiries","ready","unprofiled","list_hash","wording","template","country_code","language_code","signed","request_id"],"type":"object"},"SignoffMade":{"description":"The sign-off that was recorded.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"list_hash":{"description":"A fingerprint of the list as it was signed.","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"targets_signed":{"description":"How many companies were on it.","minimum":0,"type":"integer"}},"required":["campaign_id","list_hash","targets_signed","request_id"],"type":"object"},"SiteFactPage":{"description":"A page of what was read from company sites.","properties":{"limit":{"description":"How many rows were asked for at most.","type":"integer"},"offset":{"description":"How many rows were skipped.","type":"integer"},"page":{"$ref":"#/components/schemas/Page"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"site_facts":{"description":"The rows on this page.","items":{"description":"What was read from one site.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"domain":{"description":"The company site.","example":"example.com","type":"string"},"protection":{"allOf":[{"$ref":"#/components/schemas/Protection"}],"nullable":true},"site_facts":{"additionalProperties":true,"description":"What was read from the site, as facts.","nullable":true,"type":"object"},"site_facts_at":{"description":"When it was read.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"target_id":{"description":"The company on the campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["target_id","campaign_id","domain","protection","site_facts","site_facts_at"],"type":"object"},"type":"array"},"total":{"description":"How many rows there are in all.","minimum":0,"type":"integer"}},"required":["site_facts","total","limit","offset","request_id","page"],"type":"object"},"StopReason":{"description":"Why a campaign stopped. delivery_target_reached: the asked number of enquiries was delivered. spend_limit_reached: the solve budget was used up. no_usable_companies: nothing was left to write to. stopped_by_tenant: stopped by hand. suspended: the account was suspended.","enum":["delivery_target_reached","spend_limit_reached","no_usable_companies","stopped_by_tenant","suspended"],"type":"string"},"Team":{"description":"Your staff, with what each of them has on their desk today.","properties":{"end_of_today":{"description":"When today ends in that zone.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"members":{"description":"One row per member of staff, by name.","items":{"description":"One member of staff.","properties":{"companies":{"description":"How many companies they look after.","minimum":0,"type":"integer"},"email":{"description":"Their e-mail address.","nullable":true,"type":"string"},"follow_ups_due":{"description":"How many of those companies have a follow-up due by the end of today.","minimum":0,"type":"integer"},"full_name":{"description":"Their name.","nullable":true,"type":"string"},"has_calendar":{"description":"Whether they have a calendar seat, so a reply can be routed by their availability.","type":"boolean"},"replies_open":{"description":"How many of those companies replied and got no note since.","minimum":0,"type":"integer"},"todos_open":{"description":"How many open to-dos those companies have, as GET /todos lists them.","minimum":0,"type":"integer"},"user_id":{"description":"The person.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["user_id","full_name","email","companies","replies_open","follow_ups_due","todos_open","has_calendar"],"type":"object"},"type":"array"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"time_zone":{"description":"The zone today is read in.","example":"Europe/Berlin","type":"string"},"unassigned":{"description":"The same counts for the companies nobody looks after.","properties":{"companies":{"description":"How many companies nobody looks after.","minimum":0,"type":"integer"},"follow_ups_due":{"description":"How many of those have a follow-up due by the end of today.","minimum":0,"type":"integer"},"replies_open":{"description":"How many of those replied and got no note since.","minimum":0,"type":"integer"},"todos_open":{"description":"How many of their to-dos are open.","minimum":0,"type":"integer"}},"required":["companies","replies_open","follow_ups_due","todos_open"],"type":"object"}},"required":["members","unassigned","time_zone","end_of_today","request_id"],"type":"object"},"TeamExport":{"description":"Everything the service holds about your team, table by table.","properties":{"cap_per_table":{"description":"The most rows one table carries in an export.","minimum":0,"type":"integer"},"generated_at":{"description":"When the export was made.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"tables":{"additionalProperties":true,"description":"One entry per table that carries the team, named without its prefix: count, truncated and rows. Columns that hold hashes, keys or internal state are left out.","type":"object"},"truncated":{"description":"Whether any table had more rows than the cap.","type":"boolean"}},"required":["generated_at","cap_per_table","truncated","tables","request_id"],"type":"object"},"Territories":{"description":"Your saved territories.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"territories":{"description":"The territories, by name.","items":{"$ref":"#/components/schemas/Territory"},"type":"array"}},"required":["territories","request_id"],"type":"object"},"Territory":{"description":"A saved set of towns.","properties":{"country_code":{"description":"The country its towns are in.","example":"DE","pattern":"^[A-Z]{2}$","type":"string"},"created_at":{"description":"When it was made.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"id":{"description":"The territory id.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"locations":{"description":"Its towns.","items":{"$ref":"#/components/schemas/Town"},"type":"array"},"name":{"description":"Its name.","type":"string"},"updated_at":{"description":"When it last changed.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"}},"required":["id","name","country_code","created_at","updated_at","locations"],"type":"object"},"TerritoryDeleted":{"description":"The territory that was deleted.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"territory_id":{"description":"The territory.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["territory_id","request_id"],"type":"object"},"TerritoryDetail":{"allOf":[{"$ref":"#/components/schemas/Territory"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"TerritoryEstimate":{"description":"How many companies the banked searches already hold for a set of towns.","properties":{"estimates":{"description":"One row per town that has banked searches.","items":{"description":"One town.","properties":{"domains":{"description":"How many domains the banked searches hold for it.","minimum":0,"type":"integer"},"keywords_asked":{"description":"How many keywords were asked.","minimum":0,"type":"integer"},"keywords_banked":{"description":"How many of the asked keywords were searched there before.","minimum":0,"type":"integer"},"location_code":{"description":"The code of the town.","type":"integer"}},"required":["location_code","domains","keywords_banked","keywords_asked"],"type":"object"},"type":"array"},"language_code":{"description":"The language the estimate is for.","example":"de","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["language_code","estimates","request_id"],"type":"object"},"TerritorySaved":{"description":"The territory that was saved.","properties":{"locations":{"description":"How many towns it has.","minimum":0,"type":"integer"},"name":{"description":"Its name.","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"territory_id":{"description":"The territory.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["territory_id","name","locations","request_id"],"type":"object"},"TestEmail":{"description":"One test of a message, by email or through your own contact form. The address an email went to is not answered.","properties":{"channel":{"description":"email or form.","enum":["email","form"],"type":"string"},"created_at":{"description":"When it was asked for.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"form_url":{"description":"A form test only: the contact page.","type":"string"},"proof":{"additionalProperties":true,"description":"A form test only: the page's answer (http_status, evidence, form_url, duration_ms), or {cut: true} when it was too large to keep; null until it is done.","nullable":true,"type":"object"},"reason":{"description":"A form test only: why it was not confirmed, in plain words; null when confirmed or not done yet.","nullable":true,"type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"result":{"description":"A form test only: confirmed (the page said it was received), unconfirmed (sent, the page did not say), blocked or failed (not sent); null until it is done.","enum":["confirmed","unconfirmed","blocked","failed"],"nullable":true,"type":"string"},"sent_at":{"description":"When it was handed over for sending; null until then.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"state":{"description":"queued until handed over for sending; sent once handed over; failed when it could not be sent.","enum":["queued","sent","failed"],"type":"string"},"subject":{"description":"The subject as sent: for an email starting with [Test], for a form as written.","type":"string"},"template_id":{"description":"The saved message tested; null for an unsaved one.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"test_id":{"description":"The test.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"tries":{"description":"How many times sending it was tried.","minimum":0,"type":"integer"}},"required":["test_id","channel","template_id","state","subject","created_at","sent_at","tries","request_id"],"type":"object"},"TestEmailQueued":{"description":"A test email of the message was queued. Follow it at Location. Never charged, never counted as a send.","properties":{"blanks":{"description":"The mentions used that the sender has no value for, shown as holes in the test, as in the preview.","items":{"type":"string"},"type":"array"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"resets_at":{"description":"When the day's count starts again: the next midnight UTC.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"sendable":{"description":"True when blanks and unknown are both empty: a campaign could send this message as it is.","type":"boolean"},"state":{"description":"queued: the mail queue has it; it is usually sent within a minute.","enum":["queued"],"type":"string"},"subject":{"description":"The subject as sent, starting with [Test].","type":"string"},"template_id":{"description":"The saved message tested; null for an unsaved one.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"test_id":{"description":"The test, to follow at GET /templates/tests/{id}.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"tests_left_today":{"description":"How many more tests your account may send today (UTC day).","minimum":0,"type":"integer"},"unknown":{"description":"Any {{...}} the service does not fill, as written.","items":{"type":"string"},"type":"array"}},"required":["test_id","state","template_id","subject","blanks","unknown","sendable","tests_left_today","resets_at","request_id"],"type":"object"},"TestFormQueued":{"description":"A test of the message through your own contact form was queued. Follow it at Location. Never charged, never counted as a send.","properties":{"blanks":{"description":"The mentions used that the sender has no value for, shown as holes in the test, as in the preview.","items":{"type":"string"},"type":"array"},"channel":{"description":"form.","enum":["form"],"type":"string"},"form_url":{"description":"The contact page the test is sent through.","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"resets_at":{"description":"When the day's count starts again: the next midnight UTC.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"sendable":{"description":"True when blanks and unknown are both empty: a campaign could send this message as it is.","type":"boolean"},"state":{"description":"queued: the sending worker has it; it is usually sent within a few minutes.","enum":["queued"],"type":"string"},"subject":{"description":"The subject as given to the form, not marked as a test.","type":"string"},"template_id":{"description":"The saved message tested; null for an unsaved one.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"test_id":{"description":"The test, to follow at GET /templates/tests/{id}.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"tests_left_today":{"description":"How many more tests your account may send today (UTC day), emails and forms together.","minimum":0,"type":"integer"},"unknown":{"description":"Any {{...}} the service does not fill, as written.","items":{"type":"string"},"type":"array"}},"required":["test_id","state","channel","template_id","form_url","subject","blanks","unknown","sendable","tests_left_today","resets_at","request_id"],"type":"object"},"Town":{"description":"A town a search covers.","properties":{"distance_km":{"description":"How far it is from the anchor town, in kilometres.","nullable":true,"type":"number"},"is_anchor":{"description":"Whether this is the town the search is centred on.","type":"boolean"},"location_code":{"description":"The code of the town, as the search source numbers it.","type":"integer"},"location_name":{"description":"The name of the town.","type":"string"}},"required":["location_code","location_name","is_anchor","distance_km"],"type":"object"},"Towns":{"description":"Towns of a country a campaign can search.","properties":{"country_code":{"description":"The country.","example":"DE","pattern":"^[A-Z]{2}$","type":"string"},"near":{"description":"The town the ring is measured from, or null for a name search.","nullable":true,"type":"integer"},"radius_km":{"description":"The ring's radius in km, or null for a name search.","nullable":true,"type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"towns":{"description":"Nearest first with near; otherwise name matches first, then the biggest towns.","items":{"description":"A town.","properties":{"distance_km":{"description":"How far from the near town, null without near.","nullable":true,"type":"number"},"full_name":{"description":"The provider's full name: town, region, country.","type":"string"},"lat":{"description":"Latitude, null when unknown.","nullable":true,"type":"number"},"location_code":{"description":"What PUT /campaigns/{id}/locations takes.","type":"integer"},"lon":{"description":"Longitude, null when unknown.","nullable":true,"type":"number"},"name":{"description":"The town's name.","type":"string"},"population":{"description":"Its population, 0 when unknown.","minimum":0,"type":"integer"},"region":{"description":"Its first-level region, null when the provider names none.","nullable":true,"type":"string"}},"required":["location_code","name","region","full_name","population","lat","lon","distance_km"],"type":"object"},"type":"array"}},"required":["country_code","near","radius_km","towns","request_id"],"type":"object"},"Variants":{"description":"One variants request. Drafts to read, change and save as messages; nothing is sent from them.","properties":{"count":{"description":"How many variants were asked for.","maximum":4,"minimum":1,"type":"integer"},"drafts":{"description":"The variants, by number.","items":{"description":"One variant.","properties":{"body":{"description":"The message written, without a closing line: that is added at sending.","nullable":true,"type":"string"},"failed_kind":{"description":"The same as a word, once state is failed. WRITING_LIMIT_REACHED: the day's writing limit. BROKE_A_RULE: the text broke a rule and was not kept. NOT_WRITTEN: the writer could not write it.","enum":["WRITING_LIMIT_REACHED","BROKE_A_RULE","NOT_WRITTEN"],"nullable":true,"type":"string"},"failed_reason":{"description":"Why it could not be written, in one plain sentence, once state is failed.","nullable":true,"type":"string"},"kept":{"description":"What it kept of the message. Null until written.","nullable":true,"properties":{"fill_ins":{"description":"Every fill-in of the message is still there.","type":"boolean"},"links":{"description":"Every link of the message is still there.","type":"boolean"},"sender":{"description":"Every detail of the sender the message names is still there.","type":"boolean"}},"required":["fill_ins","links","sender"],"type":"object"},"number":{"description":"Its place in the request, from 1.","maximum":4,"minimum":1,"type":"integer"},"short_body":{"description":"The short version written, or null.","nullable":true,"type":"string"},"state":{"description":"queued until the writer takes it; running while it writes; written when the texts are there; failed when it could not write it.","enum":["queued","running","written","failed"],"type":"string"},"subject":{"description":"The subject written, once state is written.","nullable":true,"type":"string"},"too_similar":{"description":"True when it reads almost like the message or like an earlier variant of this request. Null until written.","nullable":true,"type":"boolean"},"written_at":{"description":"When the writer answered.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"}},"required":["number","state","subject","body","short_body","too_similar","kept","failed_reason","failed_kind","written_at"],"type":"object"},"type":"array"},"failed_kind":{"description":"Why none was written, once state is failed. WRITING_LIMIT_REACHED: the day's writing limit was reached, ask again tomorrow. NOT_WRITTEN: the writer could not write them.","enum":["WRITING_LIMIT_REACHED","NOT_WRITTEN"],"nullable":true,"type":"string"},"instruction":{"description":"What you asked of these variants. Null when nothing was sent.","nullable":true,"type":"string"},"language":{"description":"The language they are written in.","example":"de","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"requested_at":{"description":"When they were asked for.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"rotation_style_revision":{"description":"The rotation style revision they are written with; null when none.","minimum":1,"nullable":true,"type":"integer"},"state":{"description":"queued until the writer starts; running while a variant is still to be written; done when at least one was written; failed when none was.","enum":["queued","running","done","failed"],"type":"string"},"template_id":{"description":"The saved message the variants are of.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"variants_id":{"description":"The request.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["variants_id","template_id","state","failed_kind","count","language","instruction","rotation_style_revision","requested_at","drafts","request_id"],"type":"object"},"VariantsQueued":{"description":"The writer was asked for variants of a saved message. Read them at Location.","properties":{"count":{"description":"How many variants were asked for.","maximum":4,"minimum":1,"type":"integer"},"offered":{"description":"Whether variants are offered. False while this feature is off for your account, and nothing is queued.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"state":{"description":"queued: the writer has it in its queue.","enum":["queued"],"type":"string"},"variants_id":{"description":"The request to read at GET /templates/variants/{id}.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["offered","request_id"],"type":"object"},"VersionsInstructionSaved":{"description":"The campaign's instruction for its per-company versions was saved.","properties":{"campaign_id":{"description":"The campaign.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"offered":{"description":"Whether it is offered. False while this feature is off for your account, and nothing changed.","type":"boolean"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"versions_instruction":{"description":"The instruction now, at most 500 characters. Null when it was cleared.","nullable":true,"type":"string"}},"required":["offered","request_id"],"type":"object"},"WaitingCode":{"description":"Why a company is still waiting. settled: nothing is waiting, it is finished. org_suspended: outreach is suspended for the account. not_attested: the list was never signed off. rate_limited: the hourly limit was reached, it resumes on its own. cap_reached: the monthly allowance is used up. paced: enquiries are being spread out. team_day_limit: the account reached today's limit on paid work, it carries on by itself after midnight UTC. no_target: nothing is on the list. suppressed: the domain asked not to hear from you, or is on a do-not-contact list. reserved: another send to that domain is in progress. cooldown: the domain was written to recently. no_job: nothing is queued. working: a worker is on it now. no_worker: no worker is running. backoff: an earlier attempt did not finish, retrying shortly. queued: waiting for a free worker.","enum":["settled","org_suspended","not_attested","rate_limited","cap_reached","paced","team_day_limit","no_target","suppressed","reserved","cooldown","no_job","working","no_worker","backoff","queued"],"type":"string"},"WebhookDelivery":{"description":"One event posted to one endpoint.","properties":{"attempts":{"description":"How many times it was posted.","minimum":0,"type":"integer"},"completed_at":{"description":"When it was delivered or given up.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"created_at":{"description":"When it was queued.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"endpoint_id":{"description":"The endpoint.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"event_id":{"description":"The event.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"event_type":{"description":"The event type.","type":"string"},"failed_reason":{"allOf":[{"$ref":"#/components/schemas/FailedReason"}],"nullable":true},"id":{"description":"The delivery id.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"last_error_class":{"description":"What went wrong last, as a short class.","nullable":true,"type":"string"},"last_status":{"description":"The HTTP status your endpoint last answered with.","nullable":true,"type":"integer"},"next_attempt_at":{"description":"When it is posted next.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"resend_of":{"description":"The delivery this one resends.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","nullable":true,"type":"string"},"state":{"$ref":"#/components/schemas/DeliveryState"}},"required":["id","endpoint_id","event_id","event_type","state","attempts","next_attempt_at","last_status","last_error_class","failed_reason","resend_of","created_at","completed_at"],"type":"object"},"WebhookDeliveryDetail":{"allOf":[{"$ref":"#/components/schemas/WebhookDelivery"},{"description":"The attempts and the event.","properties":{"attempt_history":{"description":"Every attempt, in order.","items":{"description":"One attempt.","properties":{"duration_ms":{"description":"How long it took, in milliseconds.","nullable":true,"type":"integer"},"error_class":{"description":"What went wrong, as a short class.","nullable":true,"type":"string"},"number":{"description":"Its number, from 1.","type":"integer"},"reply":{"description":"The first part of what the endpoint answered.","nullable":true,"type":"string"},"started_at":{"description":"When it started.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"status_code":{"description":"The HTTP status the endpoint answered with.","nullable":true,"type":"integer"}},"required":["number","started_at","duration_ms","status_code","error_class","reply"],"type":"object"},"type":"array"},"event":{"$ref":"#/components/schemas/Event"}},"required":["attempt_history","event"],"type":"object"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}],"description":"One delivery, with every attempt and the event it carried."},"WebhookDeliveryPage":{"description":"A page of the deliveries to an endpoint.","properties":{"deliveries":{"description":"The deliveries on this page, newest first.","items":{"$ref":"#/components/schemas/WebhookDelivery"},"type":"array"},"endpoint_id":{"description":"The endpoint.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"limit":{"description":"How many rows were asked for at most.","type":"integer"},"offset":{"description":"How many rows were skipped.","type":"integer"},"page":{"$ref":"#/components/schemas/Page"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"total":{"description":"How many rows there are in all.","minimum":0,"type":"integer"}},"required":["endpoint_id","deliveries","total","limit","offset","request_id","page"],"type":"object"},"WebhookDeliveryQueued":{"allOf":[{"$ref":"#/components/schemas/WebhookDelivery"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"WebhookEndpoint":{"description":"An address events are posted to.","properties":{"created_at":{"description":"When it was made.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"created_via":{"$ref":"#/components/schemas/CreatedVia"},"description":{"description":"What it is for.","nullable":true,"type":"string"},"disabled_at":{"description":"When it was switched off.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"disabled_reason":{"allOf":[{"$ref":"#/components/schemas/DisabledReason"}],"nullable":true},"enabled":{"description":"Whether it receives events now.","type":"boolean"},"event_types":{"description":"The event types it receives.","items":{"type":"string"},"type":"array"},"failing_since":{"description":"Since when every delivery to it has failed.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"id":{"description":"The endpoint id.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"last_delivery":{"description":"The newest delivery to it.","nullable":true,"properties":{"completed_at":{"description":"When it was delivered or given up.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"created_at":{"description":"When it was queued.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"event_type":{"description":"The event type delivered.","type":"string"},"id":{"description":"The delivery id.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"state":{"$ref":"#/components/schemas/DeliveryState"}},"required":["id","event_type","state","created_at","completed_at"],"type":"object"},"last_success_at":{"description":"When it last answered with a 2xx.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"previous_secret_expires_at":{"description":"Until when the previous secret still signs, after a rotation.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"updated_at":{"description":"When it last changed.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"url":{"description":"Where events are posted.","type":"string"}},"required":["id","url","description","event_types","enabled","disabled_reason","disabled_at","created_via","created_at","updated_at","last_success_at","failing_since","previous_secret_expires_at","last_delivery"],"type":"object"},"WebhookEndpointChanged":{"allOf":[{"$ref":"#/components/schemas/WebhookEndpoint"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"WebhookEndpointDeleted":{"description":"The endpoint that was deleted.","properties":{"deleted":{"description":"Always true.","type":"boolean"},"id":{"description":"The endpoint.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["id","deleted","request_id"],"type":"object"},"WebhookEndpointDetail":{"allOf":[{"$ref":"#/components/schemas/WebhookEndpoint"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"WebhookEndpointMade":{"allOf":[{"$ref":"#/components/schemas/WebhookEndpoint"},{"description":"The secret, shown once.","properties":{"secret":{"description":"The signing secret. Shown here only, never again.","type":"string"}},"required":["secret"],"type":"object"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}],"description":"The endpoint that was made, with its signing secret."},"WebhookEndpoints":{"description":"Your webhook endpoints.","properties":{"endpoint_limit":{"description":"How many endpoints an organisation may have.","type":"integer"},"endpoints":{"description":"The endpoints, oldest first.","items":{"$ref":"#/components/schemas/WebhookEndpoint"},"type":"array"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["endpoints","endpoint_limit","request_id"],"type":"object"},"WebhookSecretRotated":{"allOf":[{"$ref":"#/components/schemas/WebhookEndpoint"},{"description":"The new secret, shown once.","properties":{"secret":{"description":"The new signing secret. Shown here only, never again.","type":"string"}},"required":["secret"],"type":"object"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}],"description":"The endpoint, with its new signing secret. The previous secret still signs until previous_secret_expires_at."},"WebhookTestQueued":{"allOf":[{"$ref":"#/components/schemas/WebhookDelivery"},{"description":"What every answer carries.","properties":{"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"}},"required":["request_id"],"type":"object"}]},"WebsiteSearch":{"description":"One website search.","properties":{"city":{"description":"The town given, or null.","nullable":true,"type":"string"},"country_code":{"description":"The country given.","example":"DE","pattern":"^[A-Z]{2}$","type":"string"},"created_at":{"description":"When it was asked for.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"fee_micros":{"description":"What finding it cost, in millionths of a US dollar: the website fee once the website is found, once per website per customer, and 0 otherwise.","minimum":0,"type":"integer"},"name":{"description":"The company name asked for.","type":"string"},"offered":{"description":"Whether the website finder is offered as a call of its own. False while this feature is off for your account, and nothing else is answered.","type":"boolean"},"postcode":{"description":"The postcode given, or null.","nullable":true,"type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"resolved_at":{"description":"When it was found or given up, null while it runs.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"state":{"description":"Where the search has got to. queued: waiting its turn. working: being looked for. found: found, website says where. not_found: looked for and not found.","enum":["queued","working","found","not_found"],"type":"string"},"website":{"description":"The website found, null until it is.","example":"example.com","nullable":true,"type":"string"},"website_id":{"description":"The search. Read it at GET /websites/{id}.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["website_id","name","city","postcode","country_code","state","website","fee_micros","created_at","resolved_at","request_id"],"type":"object"},"WebsiteSearchQueued":{"description":"The website of a company was asked for by its name. Read it at Location.","properties":{"city":{"description":"The town given, or null.","nullable":true,"type":"string"},"country_code":{"description":"The country given.","example":"DE","pattern":"^[A-Z]{2}$","type":"string"},"created_at":{"description":"When it was asked for.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"existing":{"description":"True when the same name and place were asked before and that search answers; nothing new was queued.","type":"boolean"},"fee_micros":{"description":"What finding it cost, in millionths of a US dollar: the website fee once the website is found, once per website per customer, and 0 otherwise.","minimum":0,"type":"integer"},"name":{"description":"The company name asked for.","type":"string"},"offered":{"description":"Whether the website finder is offered as a call of its own. False while this feature is off for your account, and nothing else is answered.","type":"boolean"},"postcode":{"description":"The postcode given, or null.","nullable":true,"type":"string"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"resolved_at":{"description":"When it was found or given up, null while it runs.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"state":{"description":"Where the search has got to. queued: waiting its turn. working: being looked for. found: found, website says where. not_found: looked for and not found.","enum":["queued","working","found","not_found"],"type":"string"},"website":{"description":"The website found, null until it is.","example":"example.com","nullable":true,"type":"string"},"website_id":{"description":"The search. Read it at GET /websites/{id}.","example":"123e4567-e89b-12d3-a456-426614174000","format":"uuid","type":"string"}},"required":["existing","website_id","name","city","postcode","country_code","state","website","fee_micros","created_at","resolved_at","request_id"],"type":"object"},"WhyWaiting":{"description":"Why a company on a campaign is still waiting: one sentence, and the facts behind it. The facts present depend on the code.","properties":{"code":{"$ref":"#/components/schemas/WaitingCode"},"detail":{"description":"The reason, as a sentence.","type":"string"},"domain":{"description":"The domain in question.","example":"example.com","type":"string"},"gap_seconds":{"description":"The gap kept between two enquiries.","type":"integer"},"last_worker_seen":{"description":"When a worker was last seen.","example":"2026-09-17T10:30:00Z","format":"date-time","nullable":true,"type":"string"},"monthly_cap":{"description":"The monthly allowance.","type":"integer"},"monthly_used":{"description":"How much of it is used.","type":"integer"},"queued_ahead":{"description":"How many jobs are queued ahead of this one.","minimum":0,"type":"integer"},"request_id":{"description":"The id of this request. Quote it when writing to support.","example":"req_k3x9q2ab_7hd4pw","type":"string"},"retry_after":{"description":"When it moves on its own.","example":"2026-09-17T10:30:00Z","format":"date-time","type":"string"},"retry_after_seconds":{"description":"After how many seconds it moves on its own.","type":"integer"},"suppression_reason":{"allOf":[{"$ref":"#/components/schemas/ExclusionReason"}],"nullable":true},"suppression_scope":{"description":"Whose do-not-contact list holds it.","type":"string"},"target_state":{"allOf":[{"$ref":"#/components/schemas/CompanyState"}],"description":"The state the company settled in.","nullable":true},"terminal":{"description":"Whether waiting is over for good, or it will move on its own.","type":"boolean"},"title":{"description":"The reason, as a title.","type":"string"}},"required":["code","terminal","title","detail","request_id"],"type":"object"}}}}